我有以下代碼:的UIImagePickerController iPad的問題
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] initWithRootViewController:self];
imagePicker.delegate = self;
popover = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
[imagePicker release];
[popover presentPopoverFromRect:CGRectMake(100, 100.0, 0.0, 0.0)
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];
但這只是破壞self.view
並沒有顯示任何東西。當我將inView設置爲[self.view window]
時,選取器至少顯示出來。但它仍然會刪除self.view。我必須做什麼,視圖不會消失?
Thx,我一定是盲目的! – V1ru8 2010-07-29 11:44:16