开发者

Unable to change style of UITableView to Grouped in Interface Builder

It'a s simple app, window based.

The window has a UINavigation Controller, and the Controller has a UITableView built from New File-UIViewController subclass- UITableViewController option check.

I set the style for the UITableView to Grouped in the Interface Builder, but the table stayed Plain 开发者_如何学Goin the Simulator.

I wonder if I missed any options?

XCode 3.2.6

iOS SDK 4.3

Any help is appreci

Project download: Zip File@Google Docs 692k


tViewController is a subclass of UITableViewController so it's creating a tableView for you and ignoring yours. Change the superclass of tViewController to UIViewController and it will use the tableView you have defined in IB.


Make sure you've properly specified the nib file (remember: iOS is case sensitive) for the controller and connected the table in the nib to File's Owner. Otherwise, the controller will create its own table, which is probably what's happening.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜