uipopovercontroller

UIPopOver Title and Sub-Title

瘦欲@ 提交于 2019-12-03 22:28:41
How can I set a sub-title of my popOverView ? Description : Here is what I am getting : I am able to set the title. Here is what I want :I want the title and a subtitle on my popOverView. How can I do that ? Regards !! Create a UIView with two UILabel s, either with IB or programmatically and set it to the titleView of the navigationItem . In the UIViewController that you present in the popover: - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.titleView = myTitleView; } 来源: https://stackoverflow.com/questions/6371508/uipopover-title-and-sub-title

UIPopoverController orientation crash in iOS 6 [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-12-03 16:49:57
问题 This question already has answers here : Crash on presenting UIImagePickerController under iOS 6.0 (5 answers) Closed 5 years ago . My current program only support landscape orientation. In iOS 6, it crash on UIPopoverController . 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES' I enable all orientation for project , it's working well. However, I need to change a lot for all of

How to get reference to UIPopoverController when using adaptive segue?

蓝咒 提交于 2019-12-03 15:51:47
问题 In my iOS 7 app, I detected if a segue was a popover via this check in prepareForSegue : if ([segue isKindOfClass:[UIStoryboardPopoverSegue class]]) But now that I am using adaptive segues, the Present as Popover segue is no longer returning true in the above check. This is because segue is no longer a UIStoryboardPopoverSegue , instead it is a UIStoryboardPopoverPresentationSegue . However, one cannot simply add the Presentation word because that's not defined. What is the appropriate way to

Swift - UIPopoverController in iOS 8

风流意气都作罢 提交于 2019-12-03 15:44:37
I'm trying to add a simple popoverController to my iphone app, and I'm currently struggling with the classic "blank screen" which covers everything when I tap the button. My code looks like this: @IBAction func sendTapped(sender: UIBarButtonItem) { var popView = PopViewController(nibName: "PopView", bundle: nil) var popController = UIPopoverController(contentViewController: popView) popController.popoverContentSize = CGSize(width: 3, height: 3) popController.presentPopoverFromBarButtonItem(sendTappedOutl, permittedArrowDirections: UIPopoverArrowDirection.Up, animated: true) func

table view in popover is not scrolling

霸气de小男生 提交于 2019-12-03 15:03:45
问题 I have the code below to display popover with tableview and it works perfectly. The tableview displays 13 numbers and I can scroll and see the same but when I release mouse-touch on simulator it goes back to the top. It does not stay at the row which its displaying but takes me back to 1st to 10th row . How do I make it stay in the position after scrolling. Or any fix in the below code. Thanks in Advance. - (IBAction)btn:(id)sender { if([popoverController isPopoverVisible]) {

UISearchDisplayController automatically creates a UIPopovercontroller to display content search result ?! How to dismiss it?

ぃ、小莉子 提交于 2019-12-03 14:37:51
问题 I'm using a UISearchDisplayController with a UISearchBar. I put this UISearchBar in my app using IB and I get : alt text http://img6.imageshack.us/img6/1985/screenshot20100701at156.png Fine : when you start taping, the result popovercontroller appears magically (I didn't write anything on my own to make it appear !) Then, when a row is clicked among the result, I want to dismiss the PopoverController BUT at this stage, I never instantiated the UIPopoverController on my side : it looks like if

Safari-style UIPopoverController from Toolbar

时光总嘲笑我的痴心妄想 提交于 2019-12-03 13:46:16
问题 I'm creating an iPad application which needs a UIPopoverController like this one (I mean, with buttons): I tried using a UIViewController but it gives me an enormous popup with a white background. Can anyone explain me how to make one? I cannot find any documentation or example code. Thanks. 回答1: You need -[UIActionSheet showFromBarButtonItem:animated:] instead of a UIPopoverController. 来源: https://stackoverflow.com/questions/2579025/safari-style-uipopovercontroller-from-toolbar

UIActivityViewController issue iOS 7 and iOS 8?

*爱你&永不变心* 提交于 2019-12-03 12:32:44
I’m building an article reading app for iPad. I have integrated a social sharing functionality which means user can share articles on Facebook, and google mail. I’m using UIActivityViewController for sharing. There is a bar button item,when user click on that UIActivityViewController opens.I updated Xcode 6 When I run on simulator it runs fine But I run on real device(iPad) with iOS 7,the app get crash on clicking on bar button item. this is my code: - (IBAction)ysshareAction:(id)sender { NSURL *linkURL = [NSURL URLWithString:_DetailModal1[4]];//article url NSMutableAttributedString

Dismissing UIPopoverController with -dismissPopoverAnimated: won't call delegate?

天大地大妈咪最大 提交于 2019-12-03 11:41:11
I have my UIPopoverController with self as a delegate: I receive calls when I tap outside the popover controller, but when I tap inside I want to dismiss too, so I use -dismissPopoverAnimated: but delegate is not called in this case. Is this normal? Is this a bug or I am doing something wrong? newDocPopoverController = [[UIPopoverController alloc] initWithContentViewController:vc]; [newDocPopoverController setPopoverContentSize:CGSizeMake(240, 44*4)]; [newDocPopoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

Unpredictable delay before UIPopoverController appears under iOS 8.1

て烟熏妆下的殇ゞ 提交于 2019-12-03 11:32:56
问题 This problem happens with SDK 8.1, when running under iOS 8.1, but not when running under iOS 7. It is for iPad only. The problem appears both with simulator and on a hardware device. The code below demonstrates a view controller that contains a UITableView with 1 row, and below that, a UIButton. Tapping on the button or on the row will cause a popover to appear. This works just fine when tapping the button, but when tapping the row of the tableview, the popover appears with some delay. In my