uipopovercontroller

Close Popover and open new one with one tap

孤街浪徒 提交于 2019-12-04 10:16:14
Apple's "Mobile Human Interface Guidelines" says about Popovers: When possible, allow people to close one popover and open a new one with one tap. This behavior is especially desirable when several different bar buttons each open a popover, because it prevents people from having to make extra taps. The only solution I can think right now is to track the position of the touch when dismissing the popover and check whether that was the position of another button. Is there any easier way to do this? PS: I searched in stackoverflow and googled quite a while before posting. Sorry, if this was asked

Dismiss Popover using Unwind Segue in Xcode Storyboard

一笑奈何 提交于 2019-12-04 09:38:44
I am using Xcode 4.5 and the new iOS 6 feature to unwind segues. I am presenting a navigation view controller inside a popover which is presented programmatically from a bar button item: - (IBAction)configChartTapped:(id)sender { if (self.popover.isPopoverVisible) { [self.popover dismissPopoverAnimated:YES]; } else { UINavigationController *chartConfigNavigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"GrowthChartNavigationController"]; ConfigChartTypeViewController *configChartTypeViewController = (ConfigChartTypeViewController*) chartConfigNavigationController

TableView in UIPopOverView Issue

对着背影说爱祢 提交于 2019-12-04 09:30:06
I have a issue in UIPopover, I have added UITableView in UIPopover When I am running its running good in iOS7.* as below: But while I am running in iOS8, it display as below: My code is as below CustomPopOverViewController *viewControllerForPopover = [self.storyboard instantiateViewControllerWithIdentifier:@"CustomPopOverVC"]; viewControllerForPopover.delegate = self; int setTimeFlag = [[[selectedModuleProgram objectAtIndex:[sender tag]] valueForKey:kProgram_Mst_Program_Time_Flag] intValue]; if (setTimeFlag == 1) { [viewControllerForPopover setListType:kListType_AddProgramOptions];

UIPopOver and orientation change

时光总嘲笑我的痴心妄想 提交于 2019-12-04 08:47:49
问题 In my app I have 3 UIPopOvers. They appear when user taps buttons in the toolbar. I need to make the popovers appear in the correct place when user rotates iPad if the popover is already opened (like the -willAnimateRotationToInterfaceOrientation:). How can I do it? Thanks in advance! 回答1: In iOS 7.0 and later, it can be done by implementing following method available in UIPopoverControllerDelegate: (void)popoverController:(UIPopoverController *)popoverController willRepositionPopoverToRect:

UIImagePickerController inside UIPopoverController doesn't show Cancel button on iOS7

巧了我就是萌 提交于 2019-12-04 05:28:48
问题 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

UIViewController Freeform size issue

邮差的信 提交于 2019-12-04 05:06:49
问题 I am using this amazing PopupViewController (https://github.com/martinjuhasz/MJPopupViewController) control. My app uses storyboards. I have created a custom Segue as per developers instruction(https://github.com/martinjuhasz/MJPopupViewController/issues/8) and changed the UIViewController size property to Freeform and re sized it smaller than full screen. But when it called, it shows full screen. Code for custom Segue is below #import "PopupSegue.h" #import "UIViewController

Prevent animation when dynamically resizing popover

允我心安 提交于 2019-12-04 04:27:15
问题 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

UIPopOverController + UITableView - Hide popover when cell is selected

我们两清 提交于 2019-12-04 02:30:51
In my Popover controller, i'm having a table view. On selection of a cell, I want to hide the pop over. How can I achieve it. In Header file of Root view controller: @property (strong, nonatomic) UIStoryboardPopoverSegue* popSegue; In the implementation file: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if( [[segue identifier] isEqualToString:@"popover"] ) { NSLog(@"%@",[segue destinationViewController]); self.popSegue = (UIStoryboardPopoverSegue*)segue; [[segue destinationViewController] setDelegate:self]; } } When ever you want to hide the pop over: if ([self

Xcode5 iOS7 - UIPopoverController Corner Radius

╄→гoц情女王★ 提交于 2019-12-03 23:49:57
I'm transitioning an application to iOS 7 which has been fairly smooth, there's one thing I cannot figure out. I have a view controller with a couple buttons that I display with a UIPopoverController. It looks to me like the popover controller is doing something to clip the content of it's view controller to be rounded. iOS6 (I want this): iOS7 (something changed): I'm using custom popover controller background class described here http://blog.teamtreehouse.com/customizing-the-design-of-uipopovercontroller Here's my specific version of that background class http://pastebin.com/fuNjBqwU Does

creating button for popover view anchor at run time

本秂侑毒 提交于 2019-12-03 22:29:51
This may not be possible, but I'm hoping someone will have an idea how to do it. I have an app I'm porting from iPhone only to Universal. On the iPhone, I'm using a Tabbed application. I use three tabs for the normal data to be displayed. I have a forth tab that's only displayed if certain conditions are met. To add the tab, I do: if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { UITabBarController *tabController = (UITabBarController *) self.rootViewController; NSMutableArray* newArray = [NSMutableArray arrayWithArray: tabController.viewControllers]; [newArray