Add a UIPickerView to a TabBarController, NavigationController, and TableView
OK, so, I have a TabBar based application. One of the tabs has a navigation controller. One of the navigations leads you to a table view. FROM THERE, I want to have a UIPickerView animate up from the bottom covering the tabBar when my user clicks a certain row in the tableview. However, UIPickerView does not respond to "showFromTabBar" like an action sheet, addSubView seems to put it in the wrong spot and not work correctly with the table views scrolling, etc... The closest technique I have found was to create a blank action sheet and then add the picker view as a subview to that. BUT, the action sheet disables my tableview therefore REQUIRING my user to select something from the pickerview. Also, I couldn't seem to get sizing quite right of the actionsheet behind the pickerview. Anybody done this before and have any suggestions?
The reason for the 3 empty strings in the "otherButtonTitles" is just to make the action sheet large enough to hold the pickerview, BUT, it's still a little too big. Anyways, it doesn't work properly. And yes, I know I need to release my ivars. THANKS IN ADVANCE.
OK, so, I have a TabBar based application. One of the tabs has a navigation controller. One of the navigations leads you to a table view. FROM THERE, I want to have a UIPickerView animate up from the bottom covering the tabBar when my user clicks a certain row in the tableview. However, UIPickerView does not respond to "showFromTabBar" like an action sheet, addSubView seems to put it in the wrong spot and not work correctly with the table views scrolling, etc... The closest technique I have found was to create a blank action sheet and then add the picker view as a subview to that. BUT, the action sheet disables my tableview therefore REQUIRING my user to select something from the pickerview. Also, I couldn't seem to get sizing quite right of the actionsheet behind the pickerview. Anybody done this before and have any suggestions?
The reason for the 3 empty strings in the "otherButtonTitles" is just to make the action sheet large enough to hold the pickerview, BUT, it's still a little too big. Anyways, it doesn't work properly. And yes, I know I need to release my ivars. THANKS IN ADVANCE.
Depending on if you use landscape mode or this is for an ipad you may need to play with the values a little, this specific app/screen is just for an iphone in portrait view so it works fine for what we need.