uipopovercontroller

Popover size with UINavigationController in Storyboard

白昼怎懂夜的黑 提交于 2019-12-18 06:16:40
问题 I have created an iPad app containing a popover view embedded in a navigation controller. I like using Storyboard as much as possible, and setting the "Use Explicit Size" in Xcode give me the correct size of my popover on the iPad. But it does not resize the UINavigationController view and its embedded UIViewControllers when viewing the storyboard in Xcode. This is quite annoying as the size of my view in Xcode does not correspond to the actual size of the popover. So, my problem is not

Symbol not found: _OBJC_CLASS_$_UIPopoverController

ε祈祈猫儿з 提交于 2019-12-17 22:36:39
问题 I am having problems with my universal app. I have set the Base SDK to iPhone 3.2 and set the target to 3.1. I have moved the files that are using the UIPopoverController to their own files and they shouldn't be loaded when loading the app on the iPhone. Still, when I build my app I get the following error when I build and debug to my device: dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController Referenced from: /var/mobile/Applications/B3B90643-92DC-4E5C-8B2F-83A42D6D57E0/citybikes.app

Are there examples of how to use UIPopoverController on iOS?

可紊 提交于 2019-12-17 19:10:57
问题 I've seen some demos where UIPopoverController is used and would like to use it in my apps. So does anyone have any good tutorials that you could link me? Is it possible to use it in relation to UISegmentedControl where different popover windows are summoned when different segments are selected as a type of a switch view function? 回答1: Here are some tutorials: iPad for iPhone Developers 101: UIPopoverController Tutorial [iPad App Video] iPad App Tutorial – UIPopoverController Segmented

Transparent UIPopover

此生再无相见时 提交于 2019-12-17 16:37:37
问题 Is there a way to make the UIPopOver transparent (alpha = 0.75 or so). Unfortunately there is no alpha property for UIPopOver. I need to present a popover so that the view beneath it will still be partially visible. Any ideas 回答1: popoverController.contentViewController.view.alpha = 0.5; alpha is an property of an UIView so you need to get the view of the popOver and then set the alpha to that view. 回答2: Starting with iOS5.0, one can provide a custom background for the UIPopoverController .

how to center a popoverview in swift

萝らか妹 提交于 2019-12-17 15:34:21
问题 I have the following code to show a popoverview (dialog) without an arrow, which works fine. The only problem is, that the dialog is shown in the top left (IPad). I would like to center the view on the screen. What to change or add in my following code ? : func show_help(){ let storyboard = UIStoryboard(name: "Main", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Help") as! UIViewController controller.modalPresentationStyle = UIModalPresentationStyle.popover

How can I fix the “UIPopoverController is deprecated” warning?

泪湿孤枕 提交于 2019-12-17 10:24:56
问题 I am using this code: mediaLibraryPopover = [[UIPopoverController alloc] initWithContentViewController:avc]; [self.mediaLibraryPopover presentPopoverFromRect:[theButton bounds] inView:theButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; And I am getting this warning in Xcode 7: UIPopoverController is deprecated, first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style

How to Dismiss a Storyboard Popover

有些话、适合烂在心里 提交于 2019-12-17 08:10:37
问题 I've created a popover from a UIBarButtonItem using Xcode Storyboards (so there's no code) like this: Presenting the popover works just fine. However, I can't get the popover to disappear when I tap the UIBarButtonItem that made it appear. When the button is pressed (first time) the popover appears. When the button is pressed again (second time) the same popover appears on top of it, so now I have two popovers (or more if I continuer pressing the button). According to the iOS Human Interface

UIDatePicker in UIPopover

…衆ロ難τιáo~ 提交于 2019-12-17 06:38:46
问题 I have searched the entire internet (maybe I am exaggerating a little) for a tutorial on how to put a DatePicker into a UIPopover and display that in an iPad application. I have tried creating a viewcontroller, placing the datepicker in the view controller and then: self.popover = [[UIPopoverController alloc] initWithContentViewController:sa]; (sa is the name of the viewcontroller i created), but this doesn't work, and the app crashes. Can anyone help? 回答1: Try with below code. It will work

UIPopoverPresentationController on iOS 8 iPhone

三世轮回 提交于 2019-12-17 02:12:17
问题 Does anyone know if UIPopoverPresentationController can be used to present popovers on iPhones? Wondering if Apple added this feature on iOS 8 in their attempt to create a more unified presentation controllers for iPad and iPhone. Not sure if its OK to ask/answer questions from Beta. I will remove it in that case. 回答1: You can override the default adaptive behaviour ( UIModalPresentationFullScreen in compact horizontal environment, i.e. iPhone) using the

UIPopoverPresentationController on iOS 8 iPhone

拜拜、爱过 提交于 2019-12-17 02:11:06
问题 Does anyone know if UIPopoverPresentationController can be used to present popovers on iPhones? Wondering if Apple added this feature on iOS 8 in their attempt to create a more unified presentation controllers for iPad and iPhone. Not sure if its OK to ask/answer questions from Beta. I will remove it in that case. 回答1: You can override the default adaptive behaviour ( UIModalPresentationFullScreen in compact horizontal environment, i.e. iPhone) using the