Three20 provides better encapsulation for TableViewController, making the interface for implementing the List class simpler. Now we use TTTableViewController to implement a simple setting interface. Create a project and import the Three20 library. Create a new class SettingsViewController inherited from TTTableViewContoller, and initialize and set table data in the-(id) initWithNibName :( NSString *) nibNameOrNil bundle :( NSBundle *) nibBundleOrNil method: [cpp]-(id) initWithNibName :( NSString *) nibNameOrNil bundle :( NSBundle *) handle {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; if (self) {// Custom initialization self. title = @ "set"; self. tableViewStyle = UIT AbleViewStyleGrouped; TTTableButton * userButton = [[TTTableButton alloc] init]; userButton. text = @ "deregister cloay"; userButton. delegate = self; userButton. selector = @ selector (actionLoginOut); self. dataSource = [TTSectionedDataSource performancewithobjects: @ "account settings", userButton, @ "Network Settings", [TTTableControlItem itemWithCaption: @ "load images only in wifi network" control: [[UISwitch alloc] init], @ "rating", [TTTableButton itemWith Text: @ "Give us a score, comment" delegate: self selector: @ selector (pingjia)], [TTTableButton itemWithText: @ "feedback" delegate: self selector: @ selector (feedback)], nil];} return self;}-(id) initWithNibName :( NSString *) nibNameOrNil bundle :( NSBundle *) nibBundleOrNil {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; if (self) {// Custom initialization self. title = @ "set"; self. tableViewStyle = UITab LeViewStyleGrouped; TTTableButton * userButton = [[TTTableButton alloc] init]; userButton. text = @ "deregister cloay"; userButton. delegate = self; userButton. selector = @ selector (actionLoginOut); self. dataSource = [TTSectionedDataSource performancewithobjects: @ "account settings", userButton, @ "Network Settings", [TTTableControlItem itemWithCaption: @ "load images only in wifi network" control: [[UISwitch alloc] init], @ "rating", [TTTableButton itemWithTe Xt: @ "Give us a score, comment" delegate: self selector: @ selector (pingjia)], [TTTableButton itemWithText: @ "feedback" delegate: self selector: @ selector (feedback)], nil]; www.2cto.com} return self;} similar to TableViewController, Three20 encapsulates some table UI controls, such as buttons, and can act as cells directly.: