小编Ale*_*dra的帖子

什么是默认UITableView分隔符的UIColor?

任何人都可以告诉我默认的iPhone UITableView分隔符的UIColor名称或确切的RGBA吗?

它看起来像浅灰色,但不是[UIColor lightGrayColor]; 它比那个轻.

iphone uitableview uicolor ios

41
推荐指数
8
解决办法
3万
查看次数

UITableView - 直接设置tableHeaderView属性与实现-viewForHeaderInSection方法

直接设置tableHeaderView/tableFooterView属性有什么区别:

UIView *headerView =  [[UIView alloc] init...];
tableView.tableHeaderView = headerView;
[headerView release];
Run Code Online (Sandbox Code Playgroud)

并实现viewForHeaderInSection/viewForFooterInSection方法?:

- (UIView *)tableView:(UITableView *)tableView 
    viewForHeaderInSection:(NSInteger)section
{   
    UIView *headerView = [[[HeaderView alloc] init...] autorelease];
    return headerView;
}
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c uitableview ios

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

ios ×2

uitableview ×2

cocoa-touch ×1

iphone ×1

objective-c ×1

uicolor ×1