uipopovercontroller

Change UIPopoverController color (and back button color)

久未见 提交于 2019-12-19 03:14:12
问题 I try to change the color from a UIPopoverControler on iOS 5. To do so, I use a subclass of UIPopoverBackgroundView that I assign to my popover like this: self.popover.popoverBackgroundViewClass = [KWPopoverBackgroundView class]; My popover is now black as I defined in my KWPopoverBackgroundView class but I still have a problem with the appearance. The back button (Medals) of the navigationController inside my popover is still blue. I want everything unified in black. How do I get rid of this

UIAppearance Remove Custom NavBar Background for UIPopoverController

北战南征 提交于 2019-12-19 02:52:16
问题 I'm in the process of incorporating iOS 5's UIAppearance feature to give my universal app a unique theme. Currently, I have implemented some code in my App Delegate to give the app custom navigation bars: UIImage *navBarImage = [[UIImage imageNamed:@"navigationBar.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(7, 7, 7, 7)]; [[UINavigationBar appearance] setBackgroundImage:navBarImage forBarMetrics:UIBarMetricsDefault]; This works well and changes all the navigation bars from Apple's plain

Get on screen coordinates of a certain UITableViewCell?

社会主义新天地 提交于 2019-12-18 13:17:28
问题 So, I have this UITableView . It's in an iPad application. Some of the cells have an accessory button on the right (the small round arrow). When that is pressed, I present a popover view where the user can select actions related to the table cell that they touched. So far, nothing of this is difficult or exceptional. But the popover view wants to know where it originates from, so that it can draw the little arrow pointing there. I would naturally like that arrow to point at the table cell the

Compiling against 5.1 SDK forces new UIPopoverController “slide in” presentation of popovers — how to disable?

蓝咒 提交于 2019-12-18 12:15:51
问题 Compiling my iPad app against the 5.1 SDK (release version) causes UIPopoverController to show itself using the new "slide in" from the left presentation. This completely breaks my popover presentation, which relied on having a "black" style header and a certain height. I've tried setting presentsWithGesture to NO , but that only seems to disable the swipe gesture, and doesn't stop the presentation style. This same app, without being recompiled, but running on iOS 5.1, uses the old popover

Popover doesn't center on button

不羁岁月 提交于 2019-12-18 12:13:31
问题 I am trying to center a popover on a button. I can't seem to figure out where I might be going wrong. Instead of the arrow being in the middle of the button, it is off center by half the width of the screen. @IBAction func buttonClicked(sender: AnyObject){ var popoverViewController = self.storyboard?.instantiateViewControllerWithIdentifier("ServiceOptions") as! ServiceOptionsPopover popoverViewController.delegate = self popoverViewController.modalPresentationStyle = .Popover

Popover controller for iPhone [closed]

天大地大妈咪最大 提交于 2019-12-18 11:42:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on iPhone application. And I want to create popover controller for my app. It is only available for iPad applications. Please help. 回答1: You can do it, i have live app with with popover in iPhone. Just You have to create interface for popover NSObject+UIPopover_Iphone.h #import <Foundation

Dynamic UITableView height in UIPopoverController (contentSizeForViewInPopover)?

流过昼夜 提交于 2019-12-18 11:14:01
问题 I have an ipad popover that contains an UITableView . After the table is populated, it usually has a few items in it only (4-5), so I'm looking for a way to resize the popover ( contentSizeForViewInPopover ) to the actual table height (the summed height of all its cells). So, I do have the height but I'm not sure where to call contentSizeForViewInPopover , I did try to call it in: viewDidAppear and viewWillAppear but with no success since it seems that the table gets populated later and the

Dynamic UITableView height in UIPopoverController (contentSizeForViewInPopover)?

☆樱花仙子☆ 提交于 2019-12-18 11:13:07
问题 I have an ipad popover that contains an UITableView . After the table is populated, it usually has a few items in it only (4-5), so I'm looking for a way to resize the popover ( contentSizeForViewInPopover ) to the actual table height (the summed height of all its cells). So, I do have the height but I'm not sure where to call contentSizeForViewInPopover , I did try to call it in: viewDidAppear and viewWillAppear but with no success since it seems that the table gets populated later and the

Using a UISegmentedControl in the footer of UIPopoverController

时光总嘲笑我的痴心妄想 提交于 2019-12-18 10:30:46
问题 In my iPad app Viewfinder (iTunes Link), I'm trying to recreate the look of a UISegmentedControl as seen in the footer of Keynote's Build In popover: The iPad HIG suggests using a bottom-aligned UIToolbar, but the appearance is incorrect. This screenshot shows Black Opaque, but none of the standard styles match Keynote. Any advice on recreating the Keynote look would be appreciated. If you don't have Keynote on the iPad, you can see the same technique in the footer of the Bookmarks popover in

UIPopoverController w/ UINavigationController Subview contentSizeForViewInPopover doesnt work on Parent

拈花ヽ惹草 提交于 2019-12-18 10:19:40
问题 I have a UIPopoverController with a subclass UINavigationController. Both the parent and child views are UITableviews. When i call parent view originally with contentSizeForViewInPopover = (320,480) it works great. When i click into the child view i resize the popover to contentSizeForViewInPopover = (320,780) When return back to the parent view i cannot get the popover to resize back to contentSizeForViewInPopover = (320,480). the popover stays at the (320,780) size. Been trying everything