Latest 2.0.0
Homepage https://github.com/FuJunZhi/FUTableViewIndexBar
License MIT
Platforms ios 7.0, requires ARC
Authors

*自定义TableView索引栏

CocoaPods

  1. Add pod 'FUTableViewIndexBar', '~> 2.0.0' to your Podfile.

  2. Run pod install or pod update.

  3. ‘#import "FUTableViewIndexBar.h"’.

initialize

1.初始化FUTableViewIndexBar
2.在TableView的numberOfSectionsInTableView代理方法中为索引数组赋值(setIndexes:)

delegate

@protocol FUTableViewIndexBarDelegate <NSObject>
//选中索引
- (void)fu_TableViewIndexBar:(FUTableViewIndexBar*)indexBar  sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index;

@end

setUp

/**
*  索引数组
*/
@property (nonatomic, strong) NSArray *indexes;
/**
*  是否是默认的索引列表(defaule:NO;#、A-Z)
*/
@property (assign, nonatomic, getter=isDefaultIndextList) BOOL defaultIndextList;
/**
*  选中字体是否变大(defaule:YES)
*/
@property (assign, nonatomic, getter=isSelectBig) BOOL selectBig;

/*- - - - - - - - - - - - - -方法 - - - - - - - - - - - - - - - */

/**
*  初始化
*
*  @param frame              视图大小
*  @param borderColor        边框的颜色
*  @param indexTextColor     索引字体颜色
*  @param animateColor       背景动画颜色(cleanColor:无动画)
*  @param selectIndexColor   选中索引颜色
*
*  @return FUTableViewIndexBar(颜色为空则为默认颜色)
*/
+ (instancetype)fuTableViewIndexBarWithFrame:(CGRect)frame;
+ (instancetype)fuTableViewIndexBarWithFrame:(CGRect)frame effect:(EffectBlock)effect;

Latest podspec

{
    "name": "FUTableViewIndexBar",
    "version": "2.0.0",
    "summary": "custom FUTableViewIndexBar",
    "homepage": "https://github.com/FuJunZhi/FUTableViewIndexBar",
    "license": "MIT",
    "authors": {
        "fujunzhi": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/FuJunZhi/FUTableViewIndexBar.git",
        "tag": "2.0.0"
    },
    "source_files": "FUTableViewIndexBar/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This