uipopovercontroller

How to assign an identifier to a UIViewController from the MainStoryboard?

…衆ロ難τιáo~ 提交于 2019-12-14 03:58:46
问题 Before I used to allocate and initialize a view controller using initWithNibName, where the parameter for the Nib name is simply the name of the xib/nib file. However, with the way Xcode/IB works with Storyboards now, I'm not sure what I need to do to initialize a view controller class with it's respective xib/nib. In my storyboard i have created the view controller and referenced it (from another view controller) and specified it as a Popover type. Any ideas how this is accomplished? Thanks.

uipopover hides when keyboard shows

天大地大妈咪最大 提交于 2019-12-13 21:08:24
问题 i have an UIpopover with UItextfield in it, when i open popover and tap on uitextfield then keyboard shows, but it hide the popover. How can i show keyboard without hiding UIpopover? i am calling popover in UIWebView because i use cordova 1.8.1, but i tried it in UIView too, and it hides too. here code of calling UIpopover : if (popEl==nil){ popEl=[[Popover alloc] init]; } if (pcs==nil){ pcs=[[UIPopoverController alloc] initWithContentViewController:popEl]; pcs.delegate=self; } [pcs

PopOver frame issue in iPhone SDK

江枫思渺然 提交于 2019-12-13 06:59:17
问题 I display a popover in map view as follows: But when i rotate the device, It shows Like: as you see it covers the annotation instead of showing just beside the annotation. My code is as as shown below: CGPoint annotationPoint = [mapView convertCoordinate:aView.annotation.coordinate toPointToView:mapView]; float boxDY=annotationPoint.y; float boxDX=annotationPoint.x; CGRect box = CGRectMake(boxDX,boxDY,5,5); UILabel *displayLabel = [[UILabel alloc] initWithFrame:box]; [popView

iPad camera popover preview wrong rotation and scale

不想你离开。 提交于 2019-12-13 06:29:24
问题 I am showing the camera in a popover (on an iPad - the iPad app is locked to Lanscape Left) and the preview is in Portrait and the wrong scale. The code is below - I have worked out the rotation and added it, but the preview size is the too thin now. UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;

Interacting with contents of UIPopoverPresentationController on regular sized iPhones?

本小妞迷上赌 提交于 2019-12-13 03:50:00
问题 It appears - at least by default, that while you can interact with the contents of a popover on a plus iPhone and dismiss it by tapping on the background, on a regular, non plus phone, the behavior is the opposite. Does anyone know how to correct and/or configure this so that you can interact with a popover on an regular iPhone? I have a sample that demonstrates the problem here: https://github.com/chrisco314/iPhone-Popover-Test, but the relevant code is: class PresentingViewController:

UIPopoverController for iPhone by implementing category

一个人想着一个人 提交于 2019-12-13 03:38:16
问题 I know that Popover controllers are for use exclusively on iPad devices, but on below question there is a comment in which user has mentioned about category, code is as below, UIPopoverController for iphone not working? // UIPopoverController+iPhone.h file @interface UIPopoverController (iPhone) + (BOOL)_popoversDisabled; @end // UIPopoverController+iPhone.m file @implementation UIPopoverController (iPhone) + (BOOL)_popoversDisabled { return NO; } @end Is this right way? Will Apple approve

Change UIPopover background

别来无恙 提交于 2019-12-13 02:34:33
问题 I'm looking to change the popovers border. It's just a solid flat color, so no image required. Is there a property that I can tap in to, or will I have to subclass? 回答1: Changing the look of a popover being shown via a UIPopoverController isn't supported. I wouldn't even try, as you may do a lot of work to reverse-engineer UIPopoverController, only to have it break in a subsequent software update. 来源: https://stackoverflow.com/questions/4110089/change-uipopover-background

popoverControllerDidDismissPopover NOT doing what I think it should

大憨熊 提交于 2019-12-13 01:35:10
问题 So, I think that when I click outside of a popover, the method popoverControllerDidDismissPopover should be called. I know this isn't called when dismissPopoverAnimated is called. I have a simple project that I have setup that shows popoverControllerDidDismissPopover just isn't called: #import "ViewController.h" #import "PopoverViewController.h" @interface ViewController () { PopoverViewController *controller; UIPopoverController *popoverController; } @end @implementation ViewController

How to activate UIPopoverControl on iPhone?

微笑、不失礼 提交于 2019-12-13 00:36:56
问题 I've seen this feature several times on iPhone Apps (e.g.. At Bat, Garageband, etc.) and I'm just wondering how to activate the feature for iPhone without having to build an own class. I've seen a simple YouTube video, but following the described steps didn't help much either... So to be clear, I'd love to have some sample code or a simple explanation on how to port UIPopoverControl to iPhone. Thanks in advance! 回答1: Hi for PopoverView in iPhone use this bellow Demo with Custom PopUpView..