_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
矩形情報を取得する(UITableView内)
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];
// UITableView内のrectをrootViewのrectに変換する
[tableView convertRect:rectInTableView toView:rootView];
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
アクセサリータイプ
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
UITableViewCellAccessoryNone 無し(標準)
UITableViewCellAccessoryDisclosureIndicator 矢印
UITableViewCellAccessoryDetailDisclosureButton 矢印ボタン
UITableViewCellAccessoryCheckmark チェックマーク
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
セル選択時の文字色を変更する
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
// cellの上にラベルを乗せている場合は以下のように行う
label.highlightedTextColor = [UIColor whiteColor];
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
選択状態スタイル
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
cell.selectionStyle = UITableViewCellSelectionStyleGray;
UITableViewCellSelectionStyleBlue 青色
UITableViewCellSelectionStyleGray 灰色
UITableViewCellSelectionStyleNone 選択状態無し
// 上記以外の方法
UIView *backgroundView = [[UIView alloc] init];
backgroundView.backgroundColor = [UIColor redColor];
cell.selectedBackgroundView = backgroundView;
最終更新:2016年03月01日 09:16