简体   繁体   中英

How do I make a custom UITableViewCell curved?

Like the Settings app, or a UITableCellStyleValue1?

I'm basically trying to replicate the tableviews in Settings.app, where you have a label and a textfield. I'm stuck trying to make the cells curved. How can I go about doing this?

Thanks!

您需要使用具有分组样式而不是普通样式的表格视图,并且将免费获得四舍五入的表格单元格。

[[UITableView alloc] initWithFrame:CGRectMake(0,0,320,460) style:UITableViewStyleGrouped];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM