Mac Cocoa |
Author |
Message |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sat May 02, 2009 7:44 pm Post subject: Tab Bars |
|
|
so - Adding UITabBar
"Hi, I have a UINavigationBar based application - only a one navigation bar
that is handling all the work with views in my app.
And I want to have a tab bar at a bottom part of every view that will take
the user to whatever view he would like to go." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sat May 02, 2009 8:30 pm Post subject: |
|
|
iphonedevsdk.com - Tab Bar Controller - Navigation Controller - TableView
"Create your tab bar controller programatically, and your navigationcontro-
ller programmatically too.
Then create a UITableViewController and add that to the NavController cre-
ated in the App Delegate. Add that NavController to the Tab Bar Controller.
Add the Tab Bar Controller's view to the window." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Sep 24, 2009 1:34 am Post subject: |
|
|
iphonedevsdk.com - Navigation Controller on select Tabs only - with
TabController as primary
"You add view controllers to navigation controllers, not the other way aro-
und.
For the tab that needs navigation, in your XIB file that contains the tab bar
controller, delete that tab (view controller). Grab a navigation controller fr-
om the palette and drag it to the same spot. Crack open the navigation c-
ontroller, find the view controller inside it, and set that to be your custom
view controller class." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri May 18, 2018 8:46 pm Post subject: |
|
|
so - Restrict Rotation in Tab Bar View Controllers
"If I return 'NO' I cannot rotate when I'm in the view controller, but when I
select it, it does not automatically rotate to portrait. If I return 'YES' I can
rotate when I'm in the view controller, but when I select it, it automatically
rotates to portrait." |
|
Back to top |
|
|
|