开发者

Unable to change style of UITableView to Grouped in Interface Builder

开发者 https://www.devze.com 2023-02-19 06:36 出处:网络
It\'a s simple app, window based. The window has a UINavigation Controller, and the Controller has a UITableView built from

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

精彩评论

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