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

StevenHu

macrumors member
Original poster
Sep 3, 2009
80
0
Southern CA
I used Apple's UICatalog to jump-start my app. Now I find I can't get rid of the "UICatalog" title that appears on the first page, a UITableView. It appears in the blue band at top. How do I change it? I can't find out where it's set.

Thanks!
Steve H
 
I used Apple's UICatalog to jump-start my app. Now I find I can't get rid of the "UICatalog" title that appears on the first page, a UITableView. It appears in the blue band at top. How do I change it? I can't find out where it's set.

Thanks!
Steve H

In any view controller, you can change the title like this:

myViewController.title = @"My title";

If you have a navigation bar at the top, as you do, it will display your title.
 
If you open the mainview.xib, then select the navigation controller. Then open the root view you can change the title in IB as well as using self.title = @"Title";
 
Thank you for the "title" line. That successfully overwrote the original title.

When I double-click on the MainView.xib, it doesn't open in IB. I notice that's true of several other Apple sample code xib files. Why won't they open in IB?

Thanks!
 
Why won't they open in IB?

This is a very long standing bug in Xcode. Xcode doesn't properly support localization. All of the iPhone examples use the en.lproj folder name for localization. Xcode supports English.lproj.

To make the nib file open from Xcode you need to turn the disclosure triangle next to its name. Then double click on the name 'en' that shows in the file list. If a nib file is inside English.lproj then you don't need to open the disclosure triangle to open the file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.