uipopovercontroller

UIPopoverController not dismissed when opened from self.navigationItem (inside UINavigationController)

Deadly 提交于 2019-12-02 07:55:56
问题 I have a problem dismissing a popover that was launched from the navigationItem of a UINavigationController. It seems that the navigation item which is inserted by the UINavigationController does not trigger dismissal of the UIPopoverController. Usually, when you tap outside a popover, it is dimissed. But when you tap on the navigation item, the popover is not dismissed. Worse, if you tap the button which triggers the popover, you'll get a second instance of the popover. All of this is done

popoverviewController crash on iPhone, works on iPad

﹥>﹥吖頭↗ 提交于 2019-12-02 07:28:34
a noob question here: any ideas why this code: UIViewController* popoverviewController = [[UIViewController alloc]init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; [webViewnetwork loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"webView" ofType:@"html"]isDirectory:NO]]]; [popoverView addSubview:webViewnetwork]; popoverviewController.view = popoverView; popoverviewController.contentSizeForViewInPopover = CGSizeMake (100, 100); self.popoverController = [[UIPopoverController alloc]

UIImagePickerController in UIPopoverController - location not working

谁都会走 提交于 2019-12-02 06:08:41
In an iPad app I'm writing I have button in a static table cell that launches an image picker inside a popover. I want the popover's arrow to point at the button that launched the popover. Right now, when I tap the button it doesn't. It throws the popover on screen (with the working image picker) but the arrow either points to the top of the screen or kind of anywhere else (can't figure out if it's random or not--see below). The tableview that holds the static cell that contains the button has its scroll disabled but is located on a scroll view. Could that cause random arrow locations? Here is

UIPopoverController not dismissed when opened from self.navigationItem (inside UINavigationController)

时光怂恿深爱的人放手 提交于 2019-12-02 03:19:28
I have a problem dismissing a popover that was launched from the navigationItem of a UINavigationController. It seems that the navigation item which is inserted by the UINavigationController does not trigger dismissal of the UIPopoverController. Usually, when you tap outside a popover, it is dimissed. But when you tap on the navigation item, the popover is not dismissed. Worse, if you tap the button which triggers the popover, you'll get a second instance of the popover. All of this is done using storyboards: - Create a view, embed it into a UINavigationView so it gets a navigationItem on the

How to show a UIView OVER a UIPopoverController

眉间皱痕 提交于 2019-12-02 03:07:28
In my app, I have my main view and when i click a button, a UIPopoverController is shown over my main view (not fullscreen so i still see the view behind) containing a UITableView. When I click one of the tableview cells, I want to show a custom view centered on screen (simple view informing the user that the app is processing) that will fade in and fade out during a specific amount of time. The problem is that my custom view always appears UNDER the UIPopover...I tried all I can think of, bringSubviewToFront etc...Nothing works... I also tried to wrap my custom view in a UIViewController and

UIImagePickerController inside UIPopoverController doesn't show Cancel button on iOS7

本小妞迷上赌 提交于 2019-12-02 02:59:58
I'm using UIImagePickerController inside a UIPopoverController to select image just from photo albums. When I launch app on device running iOS 8, the Cancel button on the top right of the pop over appeared normally like this: But when I launch the app on device running iOS 7, the Cancel button disappeared: The code I used to show the picker: UIImagePickerController *pickerController = [[UIImagePickerController alloc] init]; [pickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; pickerController.delegate = self; _popOver = [[UIPopoverController alloc]

How to show a UIView OVER a UIPopoverController

梦想的初衷 提交于 2019-12-02 02:24:00
问题 In my app, I have my main view and when i click a button, a UIPopoverController is shown over my main view (not fullscreen so i still see the view behind) containing a UITableView. When I click one of the tableview cells, I want to show a custom view centered on screen (simple view informing the user that the app is processing) that will fade in and fade out during a specific amount of time. The problem is that my custom view always appears UNDER the UIPopover...I tried all I can think of,

UIPopoverController too large and UIPickerView too small

余生颓废 提交于 2019-12-01 23:50:07
问题 I have a UIPickerView displayed inside a UIPopoverController . The dimensions of the UIPickerView are: 320x216 . For some reason, the UIPickerView seems to be ~3/5 of the proper height, and the UIPopoverController spans all the way down to the bottom of the screen. Please see the code below. Thanks! self.picker = [[[UIPickerView alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height+44, 320, 216)] autorelease]; self.picker.backgroundColor = [UIColor clearColor]; self.picker

Prevent animation when dynamically resizing popover

筅森魡賤 提交于 2019-12-01 21:16:24
So I realized this myself and found this answer to confirm: Prevent contentSizeForViewInPopover from animating Basically I am in a similar boat in that I want to dynamically resize my popover, depending on how much data I have to display. I am also getting this animation action where the popover view moves into place. The problem is, I can't set the popover's content size in the caller/parent, because neither the size of the content view for the text view nor the frame for the text view in my popover is known until viewDidAppear or viewDidLayoutSubviews is called, but of course at this point

UIPopoverController too large and UIPickerView too small

谁都会走 提交于 2019-12-01 20:30:15
I have a UIPickerView displayed inside a UIPopoverController . The dimensions of the UIPickerView are: 320x216 . For some reason, the UIPickerView seems to be ~3/5 of the proper height, and the UIPopoverController spans all the way down to the bottom of the screen. Please see the code below. Thanks! self.picker = [[[UIPickerView alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height+44, 320, 216)] autorelease]; self.picker.backgroundColor = [UIColor clearColor]; self.picker.showsSelectionIndicator = YES; self.picker.delegate = self; self.picker.dataSource = self; self.picker.transform