Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Some time we need to popup a controller on click of UIButton event not to cover all screen just cover some part of screen so we can show some message or perform some action on controller .
For this we need to follow some steps:
1: Take a Two UIViewController like that:
2: Here is “POP” is UIbutton , connect firstView Controller to another by Model Popover .
a: Select Button
b: go To “Connection Inspector”
c: In Triggered Section – select the action and connect to 2nd controller as “present as PopOver”
3: Now Its time to write the code in 1st viewcontroller.
a: Add the “UIPopoverPresentationControllerDelegate” in 1st UIViewcontroller class.
b: write their delegate method in 1st class.
It will look like as :
Here I have taken in 2nd Viewcontroller UItableview so you can can take any thing depends on your requirement.
You can also set the size of UITableView like that:
Here
I have taken custom width & Height if TableView .
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
The results provided were above our expectations both in deliverability timeline as well as operation. They are a top-notch company with many resources and a company we feel honoured to work with again!
Lee Seward
Founder, Gro-Connect
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.