Skip to content

bloodspasm/IndexTitlesForTableView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

IndexTitlesForTableView

IndexTitlesForTableView

自定义索引

Usage

#import "UITableView+LCL.h"
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        static NSString *CellIdentifier = @"cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        }
        cell.textLabel.text = @"xxx";
        [tableView setSectionIndexFont:[UIFont systemFontOfSize:25] textColor:[UIColor blueColor]];
        [tableView setSectionIndexBackgroundColor:[UIColor colorWithWhite:.5 alpha:1]];
        return cell;
    }

About

IndexTitlesForTableView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published