u16suzuの blog

日々学んだことのメモブログです。

2013-07-03から1日間の記事一覧

UIAlertView

BlocksKit を使うとデリゲート書かなくて済む. 読みやすい. アラート出すだけなのにデリゲート書く必要があるのはやっぱり大げさだなぁ. UIAlertView *al = [UIAlertView alertViewWithTitle:@"OK?"]; [al addButtonWithTitle:@"OK" handler:^{ [self.naviga…

UITextAlignmentCenter series are Deprecated in iOS6

Use NSTextAlignmentCenter instead.

SubViewsをすべて消す

テーブルビューのセルでよく使います NSLog(@"before : %@", [cell.contentView subviews]); for (UIView *view in [cell.contentView subviews]) { [view removeFromSuperview]; } NSLog(@"after : %@", [cell.contentView subviews]);