2012-03-06 76 views
-1

在Instagram的应用程序时,你添加新的照片,你可以看到这个表:表视图像Instagram的应用程序

enter image description here

如何创建呢?任何想法

+0

如果你已经哈有一个小时前发布这个问题....你为什么再次发布? – Shubhank 2012-03-06 08:04:22

+0

没有人回答,没有人在这个问题上对我有所了解 – 2012-03-06 08:21:46

回答

2
- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style 

在这里你可以指定的风格,以获得分组的tableview你看...

表鉴于数据源

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 

在这里你应该返回no..of部分的表中(上图有两个部分。)

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section 

上述方法用于指定的标题为section..in上述图像(第一部分不具有标题...返回“共享”为第二)

休息完成在:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 

在这里你可以为单元格的自定义文本...更改其字体...显示附件在cells..add图像细胞..

相关问题