Https://github.com/jakemarsh/JMStaticContentTableViewController
Simple and Easy-to-use
-(ID) init {
self = [super initwithstyle:uitableviewstylegrouped];
if (!self) return nil;
return self;
}
-(void) Viewdidload {
[Super Viewdidload];
Set Page table display
[Self addsection:^ (jmstaticcontenttableviewsection *section, Nsuinteger sectionindex) {
[Section addcell:^ (Jmstaticcontenttableviewcell *staticcontentcell, UITableViewCell *cell, NSIndexPath *indexPath) {
Staticcontentcell.reuseidentifier = @ "Uicontrolcell";
Cell.selectionstyle = Uitableviewcellselectionstylenone;
Cell.textLabel.text = nslocalizedstring (@ "Whether to receive push", @ "whether to receive push");
Cell.accessoryview = Openswitch;
}];
[Section addcell:^ (Jmstaticcontenttableviewcell *staticcontentcell, UITableViewCell *cell, NSIndexPath *indexPath) {
Staticcontentcell.reuseidentifier = @ "UIControlCell1";
Cell.selectionstyle = Uitableviewcellselectionstylenone;
Cell.textLabel.text = nslocalizedstring (@ "Focus on Classification", @ "focus on classification");
Cell.accessoryview=image;
} whenselected:^ (Nsindexpath *indexpath) {
Todo
[Self fenleichanged:showfenlei];
}];
}];
}