2012-03-28 18 views

回答

19

你想要的是UITableViewCellStyleValue1,但是你不能設置現有的單元格樣式:你必須在創建它時設置它。像這樣:

UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"YourIdentifier"]; 
+11

但是如果你使用dequeueReuseable:forIndexPath:...會在tableView上發生什麼? – fatuhoku 2015-11-15 20:14:08

+0

這是如何在initWithStyle初始化程序之外完成的? – wcochran 2016-02-12 20:54:04

相關問題