uipopovercontroller

Strange Error With UIPopoverController

荒凉一梦 提交于 2020-01-03 02:23:02
问题 I'm trying to use UIImagePickerController to grab a photo from the users Photos on their iPhone / iPad. This code works just fine for iPhone, but when I run it on iPad, the debugger gives me the message "Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while popover is still visible.". I'm very new to Objective-C, so I'm unsure of whats causing this, I do not dealloc anything and I have ARC turned on. Here is my code:

UIPopoverController gesture handling in UISplitViewController for iOS 5.1 and below

痴心易碎 提交于 2020-01-02 09:56:09
问题 I've (along with many others) have noticed that Apple changed the appearance of the popover controller to use a "slider" window rather than the usual "popover" tableview that I've used. While I'm okay with the new appearance, like others I'm having issues with the swipe gesture that is introduced: iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid? The fix for this seems to be to set the split view controller method "presentWithGesture" to "NO." UISplitViewController

Resizing behavior of UIPopoverController differs between iOS 7.0 and iOS 7.1

百般思念 提交于 2020-01-01 16:56:06
问题 I have a UIPopoverController that contains a UITableViewController within a UINavigationController. Whenever a cell in this table view is pressed, I push yet another UITableViewController to my navigation Controller. I want to set the height of my second table view (let's say to 200) and adjust the size of the popover accordingly. I therefore first set the table view frame in viewDidAppear:(BOOL)animated and then call setPopoverContentSize:(CGSize)size animated:(BOOL)animated . Both heights

Presenting a UIPopoverController from UICollectionViewCell

半城伤御伤魂 提交于 2020-01-01 10:04:54
问题 I'm looking to present a UIPopoverController from a button on a UICollectionViewCell. So far, everything is created ok, but the popover isn't visible. Is there a special way of doing this? The code works if I display it from anything else other than a collection view cell. The following code is in the UICollectionViewCell subclass. if (_infoPopover == nil) { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; GameInfoViewController *gameInfoVC =

Adjust UIPopoverController position after resize

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 03:21:08
问题 I have a UIPopoverController containing a UITableView . The popover is resized in its view controller's -viewDidAppear function to fit the contents of the table. While the popover resizes properly, its arrow is usually no longer pointing at the original CGRect . Is there a way to force the popover to reposition itself after a resize so that its arrow is pointing at its intended target? EDIT: I can't set the size of the popover in -viewDidLoad since the table view does not load its data until

How to dismissPopoverAnimated on iPad with UIPopoverController in MKMapView (SDK3.2)

痞子三分冷 提交于 2020-01-01 02:41:08
问题 I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the MKTestMapView.h file, a UIPopoverController* popoverController defined in the @interface and a @property (nonatomic, retain) UIPopoverController* popoverController; defined outside of the @interface section. This controller is @synthesized in the MKTestMapView.m file and it is released in the - (void)dealloc section. The Annotations in this MapView have rightCalloutAccessoryView s defined to the

Show a UIPopoverController from a detail disclosure button in a UITableViewCell

纵饮孤独 提交于 2020-01-01 00:45:38
问题 I am creating an application for the iPad, and I want to show an UIPopoverController with an arrow pointing to the detail disclosure button for the row it belongs to. I want to do this in the tableView:accessoryButtonTappedForRowWithIndexPath: method. Currently I have this, with a dummy CGRect : - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { // Dismiss in the case it shows itself somewhere else [addFeedPopup

Show a UIPopoverController from a detail disclosure button in a UITableViewCell

血红的双手。 提交于 2020-01-01 00:45:25
问题 I am creating an application for the iPad, and I want to show an UIPopoverController with an arrow pointing to the detail disclosure button for the row it belongs to. I want to do this in the tableView:accessoryButtonTappedForRowWithIndexPath: method. Currently I have this, with a dummy CGRect : - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { // Dismiss in the case it shows itself somewhere else [addFeedPopup

How to present keyboard inside popover?, ipad passcode lock style

孤街醉人 提交于 2019-12-30 10:18:10
问题 Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? 回答1: Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field. - (IBAction) button9_clicked:(id) sender{ if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){ self.theTextField.text=[self.theTextField.text

How to present keyboard inside popover?, ipad passcode lock style

无人久伴 提交于 2019-12-30 10:18:07
问题 Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? 回答1: Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field. - (IBAction) button9_clicked:(id) sender{ if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){ self.theTextField.text=[self.theTextField.text