开发者

iPhone OUTBOX like table design

I would like to do a design similar to iPho开发者_开发问答ne outbox.

It displays 3 lines of text in a single column. The first line is large and bold, the second line is of normal size and font and third one is grey color.

Also a time is displayed in the first line with a different font color.

I know to create a two line display using subtitle cell type but i am not sure how the outbox design is achieved.

Have they used a custom view with different labels and put that view inside the cell?

Thanks


You are on the right track. Create three custom labels and add them as subview to the cell. You can either do that directly in your

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

or by subclassing UITableViewCell. Alternatively, you can design your custom cell in Interface Builder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜