uipopovercontroller

push a new tableViewController in a uipopovercontroller causes the popover to be resized

那年仲夏 提交于 2019-12-08 00:52:00
问题 I found this thread, but it still doesn't fix my problem. UIPopoverController automatically resizing to max height on pushViewController I have a UIPopoverController that pushes a navigationcontroller. When I present this popover, I set the contentSizeForPopover to 340,340. That works fine. In the popover, I have a button, that pushes a new UITableViewController into the already existing UIPopoverController (code below for the tableViewController). UITableViewController *contentView = [

Code to open a UIPopoverController

99封情书 提交于 2019-12-08 00:01:53
问题 I currently have code to open a UIViewController, in this case you have opened it before so it will not totally load from scratch. So the old data will still be there when you return. I am not trying to save the data for the next time you go in the app. Only in that session. I am trying to adapt this code to the iPad for a UIPopOver. I have tried but am not able to do it. //without popover - (IBAction) addPerson:(id) sender{ if (addPersonController == nil) { addPersonController = [

setPopoverContentSize not working

主宰稳场 提交于 2019-12-07 23:22:39
问题 I have a UIPopoverController in a view, and the following method to update its CGSize : -(void)updatePop:(CGSize)newSize { NSLog(@"New Size: %@", NSStringFromCGSize(newSize)); [popoverSearch setPopoverContentSize:newSize animated:YES]; NSLog(@"popoverContentSize: %@", NSStringFromCGSize(popoverSearch.popoverContentSize)); } When the method runs, the console shows the following: New Size: {320, 640} popoverContentSize: {320, 409} Does anyone have idea why it's happening? It happens specially

Building with iOS7 produces iOS6 looking widgets

倖福魔咒の 提交于 2019-12-07 22:51:38
问题 After moving to XCode 5 and the iOS7 base SDK, some of the UI widgets in my app still look like iOS6-style (gradients, frames) on iOS7 devices. This doesn't happen on the equivalent emulator for iOS7. This also doesn't happen for all widgets, UIDocumentInteractionController's popup looks like iOS7 on device, but UIPopoverController doesn't. The keyboard for renaming a file also shows this discrepancy between emulator and device. How does iOS determine the visual style of UI elements? Is it

How do I prevent UIPopoverController passthroughViews from being reset after orientation change when presented from a UIBarButtonItem?

試著忘記壹切 提交于 2019-12-07 15:36:13
问题 I have a UIPopoverController which is being presented from a UIBarButtonItem. I want touches outside of the popover to dismiss the popover. When presenting a popover from a bar button, the other bar buttons are automatically included in the popovers passthrough views. In order to prevent that I set the passthrough views to nil (or @[ ]) after presenting the popover, like so: - (IBAction) consoleBarButtonHit:(id)sender { UIViewController *consoleNavigationController=[self.storyboard

UIReferenceLibraryViewController in a popover

霸气de小男生 提交于 2019-12-07 15:24:30
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] initWithTitle:@"Word not found" message:@"no definition" delegate:nil cancelButtonTitle:@"OK"

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

与世无争的帅哥 提交于 2019-12-07 15:24:25
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 Referenced from: /var/mobile/Applications/CBB37F87-AA6D-47E2-823A-E259E3268A32/MyApp debug.app/MyApp

How to dismiss UIActionSheets and UIPopoverControllers without knowing who presented them

帅比萌擦擦* 提交于 2019-12-07 11:48:14
问题 In my client application I have an idle timeout control mechanism and when the user does not do anything with the app for a specified time interval, I display a warning and throw him back to the login screen. This control happens in my container view where I initiate all of my other views. When the idle time is up, I pop this container view to its caller, i.e the login screen. The problem is, if the user does sthg that displays an action sheet or a popover and then does not do anything until

Noob properties error

泪湿孤枕 提交于 2019-12-07 08:04:09
问题 I'm working with an existing code. Here a popovercontroller has been declared in .h file and its giving me error in implementation line. .h file @property (nonatomic, strong) VFImagePickerController *imagePicker; @property (nonatomic, strong) UIPopoverController *popoverController; @property (nonatomic, strong) UINavigationController *targetVC; .m file: Please suggest how to fix this. 回答1: Uncomment the synthesize line and remove underscore to look like this: @synthetize popoverController;

Using UIImagePicker in a tabbed UIPopover

本秂侑毒 提交于 2019-12-07 04:44:19
问题 I am developing an iPad app that needs to have multiple image sources, on the device/Photo Albums, remote and some included with the app. Now the ideal situation would be to have a UIPopover controller with 3 tabs for each source. The only problem is I can't seem to figure out how to have a UIImagePicker be in its own tab. What I am trying to do is very similar to Apple's Keynote for iPad. The photo icon's popover has tabs and the far left tab called media for sure has a UIImagePicker in