一些特殊动画效果的列表效果
应用介绍
这是一些特殊动画效果的列表效果,该源码效果可以实现了自定义各种参数,多达20多种,来定义index的外观和动画效果,大家可以下载参考一下吧,希望可以能够帮到大家。 使用说明: - (void)viewDidLoad { [super viewDidLoad]; // initialise tableView self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds] [self.tableView registerClass:[UITableViewCell class]forCellReuseIdentifier:@"cell"]; self.tableView.dataSource = self; self.tableView.delegate = self; self.tableView.showsVerticalScrollIndicator = NO; [self.view addSubview:self.tableView]; // initialise MJNIndexView self.indexView = [[MJNIndexView alloc]initWithFrame:self.view.bounds]; self.indexView.dataSource = self; self.indexView.fontColor = [UIColor blueColor]; [self.view addSubview:self.indexView]; } // two methods needed for MJNINdexView protocol - (NSArray *)sectionIndexTitlesForMJNIndexView:(MJNIndexView *)indexView { return sectionArray; } - (void)sectionForSectionMJNIndexTitle:(NSString *)title atIndex:(NSInteger)index; { [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:index] atScrollPosition: UITableViewScrollPositionTop animated:NO]; }

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 一些特殊动画效果的列表效果
发表评论 取消回复