I want to when I click on navigation bar button, it will expand a list option menu for me to handle each item in it. Does iOS supports it? And how to do it in swift?
Asked
Active
Viewed 3,116 times
5
-
1Yes, you can do so by creating your own view. – Raptor Dec 17 '15 at 03:35
2 Answers
2
Using popover that is a good candidate for you: How to present popover or display a popover in Swift. Also, you can create custom UIView by yourself.
1
- create one view for pop-up and in view set you want(create class for this view)
- set one button in navigation
- create action for the navigation button
in button action set view is hide or show
@IBAction func button(sender: AnyObject) { if (view.hidden){ view.show = true }else{ view.show = false } }

rmaddy
- 314,917
- 42
- 532
- 579

Sanandiya Vipul
- 764
- 4
- 16