I have a tableview controller with many statics cells. When i click on one field, i want to display a UIPicker to pick a value.
My table is big, so it’s scrollable.
How can i add a subview on my tableviewController to display this UIPicker at the bottom of the ipad screen, i mean not at the bottom of the tableview.
Thank you.
You should get CGRect from viewDidAppear (not viewDidDisplay). In there self.bounds (if you have a UITableViewController class is hard when we don’t see your code) return you a visible area only. Then you can draw a picker there.
Edit (for comment request):
I use example for that from my code. In your viewController (any tableView, View … ) you have two methods:
What i do above is paste the same code to both methods. What i did receive:
From viewDidLoad: 320.000000,460.000000
From viewDidAppear: 320.000000,416.000000
This is becouse i have navigationBar in the top. So if you have something on the screen you should draw it in CGRect whatever you like (percent value maybe).