viewController内に以下のようにインターフェースを宣言します。
@interface ABPeoplePickerNavigationController (Expose)
@property (nonatomic, assign) BOOL allowsCancel;
@property (nonatomic, assign) BOOL allowsCardEditing; @end
同じファイル内に、以下のように設定します。
ABPeoplePickerNavigationController *contactsNavController = [[ABPeoplePickerNavigationController alloc] init];
contactsNavController.tabBarItem.title = @"連絡先";
contactsNavController.allowsCancel = NO;
contactsNavController.allowsCardEditing = YES;
contactsNavController.peoplePickerDelegate=self;
…
http://www.hirano-dept.com/blog/2011/01/iphone-uilabel.html
NSString *str = @”sample string”; CGSize size = [str sizeWithFont:[UIFont boldSystemFontOfSize:13] constrainedToSize:CGSizeMake(500, 2000) lineBreakMode:UILineBreakModeWordWrap]; NSLog(@”String height: %d”, size.height);
http://blog.summerwind.jp/archives/1353/
この投稿へのコメント
コメントはまだありません。