uipopovercontroller

how to call MvxDialogViewController as a popover

不打扰是莪最后的温柔 提交于 2021-01-29 18:16:37
问题 I am trying to display MxxDialogViewController from a popover and am getting an exception 18.35 Request is null - assuming this is a TabBar type situation where ViewDidLoad is called during construction... patching the request now - but watch out for problems with virtual calls during construction while calling base.ViewDidLoad() here is what I did to demonstrate the problem as a small sample: I took N-23 example and added to the first section a new element with the Tapped command new

UIPopoverController placement

给你一囗甜甜゛ 提交于 2020-01-21 10:28:30
问题 I'm working on an app that is supposed to be universal, one app for both iPad and iPhone. I would like to keep their interfaces as similar as possible. In the iPhone app I am using a Tab bar controller, and one of those tabs goes to an image picker controller. Obviously I cannot do that in iPad. So I have hijacked control of that button to bring a popupcontroller that has the image picker in it. This all works well enough, except when I bring up the popup, it is not in the correct place. When

UIPopover on ARC

杀马特。学长 韩版系。学妹 提交于 2020-01-16 03:58:07
问题 I am using ARC on an iPad app with the code below, the popover flashes on the screen, but doesn't stay. What I am doing wrong? Please help - (IBAction)photoLibraryAction:(id)sender { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; [imagePicker setDelegate:self]; UIPopoverController *pop1 = [[UIPopoverController alloc] initWithContentViewController:imagePicker]; [pop1 setDelegate:self]; [pop1 presentPopoverFromBarButtonItem:sender permittedArrowDirections

iOS Crash: Terminating app due to uncaught exception reason: UIPopoverPresentationController should have a non-nil sourceView

陌路散爱 提交于 2020-01-16 03:48:20
问题 I need help figuring this crash out. I checked stackoverflow for answers, but non of the answers relates to my situation. This is my code. - (void)addImagesActionSheetClickedButtonAtIndex:(NSInteger)buttonIndex { // Cancel if (buttonIndex == 2) return; //Take picture if (buttonIndex == 0) { //Take picture isFromLibrary = NO; [self.imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera]; [self.navigationController presentViewController:self.imagePicker animated:YES completion:NULL];

UIPopoverController for iPhone

放肆的年华 提交于 2020-01-15 12:23:52
问题 Does anyone know of how I would go about creating a UIPopoverController like the one found in Tweetbot form Tapbots? For months I have been trying to figure this out and gave up thinking it wasn't possible. When Tweetbot received an update with this, it made realize it is possible but I still can't seem to figure it out. Does anyone know of classes I could download that has an identical UIPopover? Thanks Edit: http://d.pr/LPI9 回答1: Popover controllers are for use exclusively on iPad devices.

UIPopoverController for iPhone

岁酱吖の 提交于 2020-01-15 12:23:14
问题 Does anyone know of how I would go about creating a UIPopoverController like the one found in Tweetbot form Tapbots? For months I have been trying to figure this out and gave up thinking it wasn't possible. When Tweetbot received an update with this, it made realize it is possible but I still can't seem to figure it out. Does anyone know of classes I could download that has an identical UIPopover? Thanks Edit: http://d.pr/LPI9 回答1: Popover controllers are for use exclusively on iPad devices.

UIPopoverController for iPhone

丶灬走出姿态 提交于 2020-01-15 12:22:58
问题 Does anyone know of how I would go about creating a UIPopoverController like the one found in Tweetbot form Tapbots? For months I have been trying to figure this out and gave up thinking it wasn't possible. When Tweetbot received an update with this, it made realize it is possible but I still can't seem to figure it out. Does anyone know of classes I could download that has an identical UIPopover? Thanks Edit: http://d.pr/LPI9 回答1: Popover controllers are for use exclusively on iPad devices.

iOS popovers as menu tutorial

£可爱£侵袭症+ 提交于 2020-01-15 11:44:46
问题 I am writing an iPad app and am very new to objective C. I am currently trying to use a popover as a menu within a view controller. I understand how to set the popup up and have a tableview in it for a user to select an item from. However, I am not sure how to then pass the information back to the container view which holds the popover. didSelectRowAtIndexPath will be called within the UITableViewController which is presumably inside the popover view controller. Can anyone point me in the

Adding a button inside a popover

无人久伴 提交于 2020-01-14 06:28:09
问题 Is it possible inside Xcode to add a button inside a popover that will take the user to a new view? 回答1: Yes. [myPopOver.contentViewController.view addSubview:myButton]; [myButton addTarget:self action:@selector(goToNextView) forControlEvents:UIControlEventTouchUpInside]; - (void)goToNextView { //if you are using xibs use this line UIViewController *controller = [[UIViewController alloc] initWithNibName:@"myXib" bundle:[NSBundle mainBundle]]; //if you are using storyboards use this line

Set UIPopOverController size

拜拜、爱过 提交于 2020-01-13 10:43:34
问题 I have a view with a bunch of button in a UIScrollView . When the user presses a button, I want a UIPopOverController to display pointing at the selected button. It kind of works, but the popover is the wrong size and points to a random point in the view. Here is my code. -(void)detail:(id)sender{ UIButton *button = sender; NSLog(@"tag = %i", button.tag); UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController]; if (UI_USER_INTERFACE