uipopovercontroller

UIPopovercontroller Parent?

落爺英雄遲暮 提交于 2019-12-08 17:36:18
问题 How can "perform selector" to the parentviewcontroller of the uipopovercontroller? I have uipopovercontroller lanuched from uiviewcontroller, and this uipopovercontroller includes other uiviewcontroller. I can't seem to reach the parent view controller from either the popover or the "internal" view controller. I hope i'm being clear... BTW - parentViewcontroller doesn't work... Thanks! 回答1: There's no way to do this directly with UIPopoverController . You're going to have to probably pass a

Set Multiple Arrow Directions on UIPopoverController in Swift

Deadly 提交于 2019-12-08 14:50:32
问题 What is the syntax to set multiple arrow directions for a UIPopoverController in Swift? Something like this: popoverController.permittedArrowDirections = .Up | .Down 回答1: I believe in swift the syntax you're looking for is: popoverController.permittedArrowDirections = [.up, .down] 来源: https://stackoverflow.com/questions/34052471/set-multiple-arrow-directions-on-uipopovercontroller-in-swift

How to make the landscape view look same as the portraitView while using a splitViewController?

↘锁芯ラ 提交于 2019-12-08 13:37:39
问题 What I meant is, When we use a UISplitViewController project In portrait mode, whole window will be covered by the view and a popoverController will be presented to navigate to other views. In landscape mode, 40% of the window will be covered by a tableView using which we can change the view/page. And navigation button as well as popoverController will be hidden. What I want is, Even in landscape mode, it should be like portrait mode. No tablewView should be there. Whole window should be

I would like a “drawing popover” appearing by clicking in a tableviewcell?

我的梦境 提交于 2019-12-08 12:59:35
问题 I would like to have a popover with a signature "drawing" when I click in a tableviewcell. Like this picture : So here is my code : - (void)didSelectWithTableView:(UITableView *)tableView controller:(UIViewController *)controller { red = 0.0/255.0; green = 0.0/255.0; blue = 0.0/255.0; brush = 2.0; opacity = 1.0; viewController = [[UIViewController alloc] init]; mainImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, viewController.view.frame.size.width, viewController.view.frame.size

UIPopOverController issues while autorotation

青春壹個敷衍的年華 提交于 2019-12-08 11:48:12
问题 I am presenting a UIPopovercontroller using PresentPopOverFromRect: method. in Portrait Orientation. When i autorotate to Landscape UIPopoverController is not presenting at the proper position. How to position the UIPopoverController while autorotating the device. 回答1: You need to override this function: - (void)willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration where you can change the dimension and position of the

UIReferenceLibraryViewController in a popover

孤街醉人 提交于 2019-12-08 07:31:00
问题 I have this portion of code to pull up the dictionary if a word is searched: - (IBAction)searchButtonPressed:(id)sender { NSString *searchTerm = self.searchTextField.text; if([UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:searchTerm]) { UIReferenceLibraryViewController *referenceLibraryVC = [[UIReferenceLibraryViewController alloc] initWithTerm:searchTerm]; [self presentModalViewController:referenceLibraryVC animated:NO]; } else { UIAlertView *alert = [[UIAlertView alloc]

iPad: problems with table rows in popovercontrol

风流意气都作罢 提交于 2019-12-08 06:17:23
问题 I have an iPad application which implements the UISplitViewController. As usual I'm using the popover button to show the root view when the device is in portrait mode. It's seems to be ok at time of launch, but if I turn the device to landscape, then back to portrait, the table in the popover, will have an additional blank row at top, so that I have to scroll down to see the others... Where am I doing wrong? 来源: https://stackoverflow.com/questions/3336841/ipad-problems-with-table-rows-in

“Symbol not found” error for UIPopoverController in an iPhone/iPad Universal App

落花浮王杯 提交于 2019-12-08 06:09:47
问题 In a universal binary iPhone/iPad app of mine, users are able to adjust preferences in a view controller that's presented modally. On the iPhone, the settings panel is presented with presentModalViewController:animated:, and on the iPad, I use a UIPopoverController. I'm having a heck of a time completely isolating the UIPopoverController code away from the iPhone code. Everytime I compile for the iPhone, I get the following error: dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController

'NSInvalidArgumentException', reason: '-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.'

♀尐吖头ヾ 提交于 2019-12-08 04:05:11
问题 It is my first app that I am trying to build in Iphone and I have some problems. Although I have read similar threads here I was not able to find the answer.I want to show popoverview controller on my button click.but unable to do. i am getting exception mention in question title above below are my files .h file @property (nonatomic,strong) UIPopoverController *popOver; @property (nonatomic,strong) SecondViewController *popOverView; .m file - (IBAction)Getcompany:(id)sender {

Remove dimming view behind UIPopoverPresentationController

故事扮演 提交于 2019-12-08 03:57:50
问题 I'm trying to remove the dimming view behind a popover presented using UIPopoverPresentationController. I've implemented a custom UIPopoverBackgroundView, but there doesn't seem to be a way to get rid of this dimming view. I've tracked the dimming view to a "_UIMirrorNinePatchView" using the view hierarchy inspector, but there's no good way of removing it short of crawling through the subviews of UIWindow and manually removing this view from its superview. This approach is flawed as it