uipopovercontroller

Unwanted margin UIPopoverController

梦想的初衷 提交于 2019-12-06 06:08:39
问题 When I present my popover in a view and place it at the side of the view. There is always a small margin, causing the popover to not stick to the side. UIViewController *vc = [self getViewController:@"popover" fromStoryboard:@"Main"]; UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:vc]; [popover presentPopoverFromRect:CGRectMake(1100, 0, -65, 65) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; [vc

Dismiss Popover using Unwind Segue in Xcode Storyboard

倾然丶 夕夏残阳落幕 提交于 2019-12-06 05:54:28
问题 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"];

How to display a view made with Interface Builder as a UIPopoverController?

泄露秘密 提交于 2019-12-06 04:51:50
问题 I'd like to design my views quietly in Interface Builder, then to be able to display them dynamically as an UIPopoverController. I found this precious tutorial by Ray Wenderlich but I cannot extend it to my needs. Anyone could help me? 回答1: Here is how I usually do it: let's say I have a parent view controller in which I want to present the popover. I declare a popover controller as a property for that VC ( @property (nonatomic, retain) UIPopoverController* popOverController; ) The code for

TableView in UIPopOverView Issue

拜拜、爱过 提交于 2019-12-06 04:32:35
问题 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];

Close Popover and open new one with one tap

一曲冷凌霜 提交于 2019-12-06 04:21:40
问题 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

how to use popover controller in iPhone

我只是一个虾纸丫 提交于 2019-12-06 02:23:52
问题 I couldn't show popover controller as popover in iPhone whereas it works very well with iPad. Any ideas on how to do that in iPhone. As far as I have searched I couldn't find any. anyways to make the popover appear in iphone as it is in iPad is appreciated ! 回答1: Set yourself as the popover view controller's delegate before presenting it, and implement the delegate method adaptivePresentationStyle(for:traitCollection:) to return .none . This will cause the popover to stop adapting on iPhone

Custom PopOver with pattern border

混江龙づ霸主 提交于 2019-12-06 01:45:44
I'm trying to implement popover like that: I've spent quite a lot of time trying to customize UIPopoverController and UIPopoverBackgroundView . As I understand my task is impossible with public API for popovers. It is possible: To use small image with fixed corners and stretchable center, in that case I'll have stretched stripes on the side. And also I'll have image "under" the arrow. Fill border with stripes, but in that case I don't have rounded corners. I also have annoying inner shadow inside: backgroundImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@

How to dismiss UIActionSheets and UIPopoverControllers without knowing who presented them

蹲街弑〆低调 提交于 2019-12-05 22:39:08
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 the idle time is up, when I throw him to the login screen the action sheets and the popovers also

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

送分小仙女□ 提交于 2019-12-05 20:14:01
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 instantiateViewControllerWithIdentifier:@"consoleNavigationController"]; _consolePopoverController=[

Noob properties error

与世无争的帅哥 提交于 2019-12-05 16:41:57
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. Uncomment the synthesize line and remove underscore to look like this: @synthetize popoverController; And replace every _popoverController var name in your .m file to popoverController It appears that your class