Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexpja

macrumors member
Original poster
Mar 22, 2010
81
0
I've tried every possible thing on the Web but none work, since I don't have MainWindow.xib. How can I change the tab names in Xcode 4.2 (GM seed)?

Attached is a picture from Xcode showing no tabs, the file list, and a pic from iOS Simulator showing the tabs.
 

Attachments

  • Screen Shot 2011-10-08 at 11.22.24 AM.png
    Screen Shot 2011-10-08 at 11.22.24 AM.png
    10.6 KB · Views: 151
  • Screen Shot 2011-10-08 at 11.22.33 AM.png
    Screen Shot 2011-10-08 at 11.22.33 AM.png
    31.5 KB · Views: 404
  • Screen Shot 2011-10-08 at 11.22.52 AM.png
    Screen Shot 2011-10-08 at 11.22.52 AM.png
    32.2 KB · Views: 392
How and where are you creating the UITabBarController (or UITabBar) object that we see in the screenshot of the iPhone simulator?
 
I selected Tabbed Application when creating a new project in Xcode. Should I restart the project using a normal function and add the TabBar normally?
 
Look inside each of the initWithName:bundle: methods of the view controllers.

I'm pretty sure I found it, that right? rofl, seems like it to me :3

Edit: Worked! :D Thanks!!
 

Attachments

  • Screen Shot 2011-10-09 at 12.12.15 AM.png
    Screen Shot 2011-10-09 at 12.12.15 AM.png
    24.7 KB · Views: 129
Why do you use an NSLocalizedString? you can just do
Code:
self.title = @"Second";
not sure which is "most" performant, and you wouldn't notice the difference. But still ;p

That would be just because the TabBar template uses NSLocalizedString, presuming that the tab bar items would need to localized.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.