iOS tableview multiple tabular forms

Source: Internet
Author: User

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];
}];

}];

}


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.