0
我想在應用程序加載完成後立即啓動聯繫人列表選擇器,但顯而易見的事情似乎沒有奏效。在viewDidLoad中啓動人員選取器?
- (void)viewDidLoad {
name.hidden = NO;
name.text = @"ViewDidLoad";
ABPeoplePickerNavigationController *picker =
[[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
[self presentModalViewController:picker animated:YES];
[picker release];
}
名爲「name」的UILabel設置得當,但人員選擇器沒有顯示。 我有一個按鈕,當它被按下時實例化人員選擇器,並且工作正常。
有什麼建議嗎?
謝謝!
哇,謝謝!我選擇將它放入視圖中,而不是您的建議。 :) – GrooveStomp 2011-03-26 21:55:08