开发者

iPhone OUTBOX like table design

开发者 https://www.devze.com 2022-12-14 02:02 出处:网络
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 t

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

精彩评论

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

关注公众号