Skip to content

A simple-to-integrate and easy-to-use expandable table view.

License

Notifications You must be signed in to change notification settings

chanryma/JMExpandableTableView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JMExpandableTableView

A simple-to-integrate expandable table view, for iOS.

image

How to Use

  1. Copy the Core folder into your project.
  2. Provide your own section view by implementing SectionViewDelegate. image
  3. Make your controller inherit BaseExpandableTableViewController and override following 5 methods.
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
// return YES if a section should be expanded by default when table view is loaded
-(BOOL)expTableView:(UITableView *)tableView expandSectionByDefault:(NSInteger)section;
// your controller should not override the default "tableView:numberOfRowsInSection:"
-(NSInteger)expTableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
// provide your own section view implementation
-(id<SectionViewDelegate>)expTableView:(UITableView *)tableView sectionViewInSection:(NSInteger)section;
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

That's it!

About

A simple-to-integrate and easy-to-use expandable table view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published