嗨在我的應用程序中,我有一個按鈕,所以當您點擊它時,UIPopover會在其中添加聯繫人視圖。除了當你按下保存時,所有工作人員。它不會消失。從UIPopover關閉添加聯繫人視圖控制器
-(IBAction) addcontact
{
ABNewPersonViewController *contacts = [[ABNewPersonViewController alloc] init];
// imagePicker.delegate = self;
// UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:contacts];
UINavigationController *addContactNavController = [[UINavigationController alloc] initWithRootViewController:contacts];
popover = [[UIPopoverController alloc] initWithContentViewController:addContactNavController];
popover.popoverContentSize = CGSizeMake(320, 1000);
[popover presentPopoverFromRect:CGRectMake(935, 270, 175, 300)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionRight
animated:YES];
[popover retain];
[addContactNavController release];
[contacts release];
}
我該把它放在哪裏? – BDGapps 2011-05-19 04:33:31
保存聯繫人 – thedanielhanke 2011-05-19 04:35:57
它仍然無法正常工作 – BDGapps 2011-05-19 04:53:18