我想在联系人应用程序中添加一个表头(不是节头),例如:

就像那样 - 桌子上方图像旁边的标签.
我希望所有视图都可以滚动,所以我不能把它们放在桌子之外.
我怎样才能做到这一点?
Greets,我读到的默认行为UITableView是当你滚动这些部分直到下一部分将previos部分行推出视图时将部分标题行固定到表的顶部.
我有一个UITableView内部UIViewController,这似乎并非如此.
这只是违法行为UITableViewController吗?
这是基于我所拥有的一些简化代码.我将展示UIController我实现的接口和每个表视图方法来创建表视图.我有一个帮助器数据源类,可以帮助我索引我的对象以便与表一起使用.
@interface MyUIViewController ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, readonly) UITableView *myTableView;
@property (nonatomic, readonly) MyCustomHelperDataSource *helperDataSource;
@end
//when section data is set, get details for each section and reload table on success
- (void)setSectionData:(NSArray *)sections {
super.sectionData = sections; //this array drives the sections
//get additional data for section details
[[RestKitService sharedClient] getSectionDetailsForSection:someId
success:^(RKObjectRequestOperation *operation, RKMappingResult *details) {
NSLog(@"Got section details data");
_helperDataSource = [[MyCustomHelperDataSource alloc] initWithSections:sections andDetails:details.array]; …Run Code Online (Sandbox Code Playgroud) 我有一个UITableView我能够相当容易地添加标题视图.许多应用程序(如Facebook,用于查看事件)都有一个headerView,当你下拉时,标题视图保持不变,但表的其余部分(UITableViewCells)正在反弹.向上滚动标题消失.我该如何实现此功能?
现在当我拉下来时UITableView,即使是headerView也会反弹