Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add popover menu on UIButton click. #5

Open
MiteshiOS opened this issue Nov 29, 2017 · 2 comments
Open

Unable to add popover menu on UIButton click. #5

MiteshiOS opened this issue Nov 29, 2017 · 2 comments

Comments

@MiteshiOS
Copy link

Is there any way so i can show this pop up menu on click of UIButton not UIBarButtonItem.

@chetanpanchal94
Copy link

chetanpanchal94 commented Oct 29, 2018

facing same problem any solution?

@DeepakKumariOS
Copy link

DeepakKumariOS commented Nov 12, 2018

Is there any way so i can show this pop up menu on click of UIButton not UIBarButtonItem.

    popOverViewController.setSeparatorStyle(UITableViewCell.SeparatorStyle.singleLine)
    popOverViewController.popoverPresentationController?.canOverlapSourceViewRect = true
    popOverViewController.popoverPresentationController?.sourceView = sender
    popOverViewController.popoverPresentationController?.sourceRect = sender.bounds

sender is object of UIButton.
This is work for me. @MiteshiOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants