- 追加された行はこの色です。
- 削除された行はこの色です。
&tag();
*目次 [#c7b1fdb9]
#contents
*関連情報 [#vcf5f158]
-[[UITableView]]
-[[UIViewController]]
*行の追加と削除 [#rb31d81b]
-[[Table View Programming Guide for iOS: Inserting and Deleting Rows and Sections:http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html]]
-[[cocoa*life - UITableViewにcellを動的に追加/削除する2つの方法。:http://www.cocoalife.net/2010/04/post_543.html]]
*行の高さを指定する [#eda64be6]
-tableView:heightForRowAtIndexPathを追加する。
#pre{{
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
return 100;
}
return 200;
}
}}
*テーブルセル [#jaa48969]
**右矢印を表示 [#r6e19ff7]
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
*Tips [#c28a10c8]
**グラデーションつきのテーブル [#pccca7e3]
-[[Cocoa with Love: Adding shadow effects to UITableView using CAGradientLayer:http://cocoawithlove.com/2009/08/adding-shadow-effects-to-uitableview.html]]