よく使う(であろう)パターン

– (void)applicationDidFinishLaunching:(NSNotification *)aNotification

アプリケーションの起動が終わったときに呼ばれる。
自前クラスなどに記述してApplicationのDelegateに設定する。

標準UIを変更したい時の下調べに。

http://stackoverflow.com/questions/750119/how-do-i-change-the-color-of-the-side-alphabet-in-an-indexed-uitableview

- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {    

  for(UIView *view in [tv subviews])
  {
    if([[[view class] description] isEqualToString:@"UITableViewIndex"])
    {

      [view setBackgroundColor:[UIColor whiteColor]];
      [view setFont:[UIFont systemFontOfSize:14]];
    }
  }

  //rest of cellForRow handling...

}

コメントを残す

メールアドレスが公開されることはありません。

6 + 1 =