zenlinux.org

Home > Not Working > Preferredcontentsize Not Working

Preferredcontentsize Not Working

Contents

self.popoverSize = CGSizeMake(420, height); [self setPreferredContentSize:self.popoverSize]; } -(void)viewWillAppear:(BOOL)animated { ... Join them; it only takes a minute: Sign up Change contentSizeForViewInPopover on navigationController push on iOS up vote 5 down vote favorite 2 I have a UIPopoverController with navigationController and bunch The time now is 06:31 AM. Forum RSS Feeds Iphone Issues preferredContentSize not working instead of contentSizeForViewInPopover Results 1 to 1 of 1 Thread: preferredContentSize not working instead of contentSizeForViewInPopover LinkBack LinkBack URL About LinkBacks Bookmark http://zenlinux.org/not-working/javascript-not-working-in-firefox-but-working-in-chrome.html

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Is there any way for a planet orbiting a red dwarf in the habitable zone to not be tidally locked? umlaute not rendered correctly with lualatex What does the actual path of air within a turbojet engine look like? Content Relevant URLs by vBSEO 3.6.0 PL2 Nuts and Bolts Reality is overrated Search Main menu Skip to primary content Skip to secondary content Home Post navigation ← Previous Transitioning to http://stackoverflow.com/questions/22221837/preferredcontentsize-not-working-instead-of-contentsizeforviewinpopover

Preferredcontentsize Not Working

I set the preferredContentSize in my View Controller and tried setting the Nav Controller's preferredContentSize from within my View Controller. Making A Solid Mesh Melt? In case you have to continue supporting iOS6 / Xcode 4 then creating the following header file #ifndef PK_Xcode4_support_h #define PK_Xcode4_support_h #ifndef NSFoundationVersionNumber_iOS_6_0 #define NSFoundationVersionNumber_iOS_6_0 993.00 #endif #ifndef NSFoundationVersionNumber_iOS_6_1 #define NSFoundationVersionNumber_iOS_6_1 share|improve this answer answered Oct 29 '14 at 8:50 Zeroid 212 I had the issue with an app in iOS8 compiled with iOS7 sdk.

Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. In my contentViewController i keep a reference to UIPopoverController *parent; This reference is set during initialization of UIPopoverController and it's content. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Preferredcontentsize Swift I'll try the link you posted above. –Rok Jarc Mar 15 '12 at 12:16 1 Yeah I know.

Would certain defective clones have the inhibitor chip? Preferredcontentsize Not Working Ios 9 Browse other questions tagged ios uiviewcontroller uinavigationcontroller uipopovercontroller or ask your own question. if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { self.popover = [[UIPopoverController alloc] initWithContentViewController:actionsNavigationController]; self.popover.delegate = self; popover.popoverContentSize =CGSizeMake(250,200); //Addint this line for setContentsize [self.popover presentPopoverFromRect:button.frame inView:button permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; } else { [self more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

What are some ways that fast, long-distance communications can exist without needing to have electronic radios? Override Preferredcontentsize Swift Does the Rothschild family own most central banks? I had also the same issue. What is the more appropriate adjectival form of Trump?

Preferredcontentsize Not Working Ios 9

Can Newton's laws of motion be proved (mathematically or analytically) or they are just axioms? http://stackoverflow.com/questions/26000565/popover-wont-respect-preferred-size Reload to refresh your session. Preferredcontentsize Not Working UIPopoverController *popoverControllerReference = ***GET REFERENCE TO IT FROM SOMEWHERE***; [popoverControllerReference setPopoverContentSize:self.popoverSize]; } share|improve this answer answered Jun 25 '14 at 18:19 anders 2,99321426 add a comment| up vote 0 down vote Contentsizeforviewinpopover Deprecated In Ios 7 Let me know if that works. –stiggs Mar 30 '14 at 23:26 @SamStigler i try set to viewDidLoad or viewWillAppear but nothing happened.

You can use this code if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) can detect if you're running on iOS7 or newer. weblink PopOverViewController { let navController = UINavigationController(rootViewController: viewController) navController.modalPresentationStyle = .Popover if let pctrl = navController.popoverPresentationController { pctrl.delegate = self pctrl.sourceView = base pctrl.sourceRect = base.bounds self.presentViewController(navController, animated: true, completion: nil) } Mind the gap One of the new features of iOS7 is that your views can slide under the navigation bar. asked 3 years ago viewed 2945 times active 2 years ago Upcoming Events 2016 Community Moderator Election ends in 10 days Related 12UIPopoverController & UIImagePickerControl: “Popovers cannot be presented from a Contentsizeforviewinpopover Ios 8

How can I claim compensation? Pick Randomly Between -1 or 1 Lab colleague uses cracked software. The case of the Maid, the Son and the Butler Wrong way on a bike lane? "president-elect" grammatically correct? navigate here Might want to make it clear at the top of your comment that the problem is you need to update the navigationController preferredContentSize as well as the visibleVC preferredContentSize.

How does Gandalf end up on the roof of Isengard? Contentsizeforviewinpopover Swift This is what I discovered: - When you set the contentSizeForViewInPopover in your view controller it won't be changed by the popover itself - even though popover size may change while Linked 84 Popover with embedded navigation controller doesn't respect size on back nav Related 0NavigationController / TableView memory leak in Iphone31UIScrollView adjusts contentOffset when contentSize changes2navigationController pushed ViewControllers won't autorotate0iphone -

Reuse ViewControllers1Extra blue section in popover between the navigation bar title and the view controller's view0UINavigationController's back button doesn't disappear when UIViewController is popped13Animate popoverContentsize when pushing navigation view controller in

Would certain defective clones have the inhibitor chip? Thank you. –Dincer Aug 26 at 21:19 add a comment| up vote 1 down vote For me this solutions works. Forum FAQ Calendar Community Member List Forum Actions Mark Forums Read Quick Links View Site Leaders Blogs What's New? Preferredcontentsize Not Working Ios 8 Did I cheat?

Can leaked nude pictures damage one's academic career? Dealing With Dragonslayers Term for a perfect specimen or sample MathSciNet review alert? On Tate's "Endomorphisms of Abelian Varieties over Finite Fields", sketch of proof of main result? http://zenlinux.org/not-working/css-not-working-in-ie-11.html Btw vl try ur solution –Clement Prem Oct 23 '14 at 11:30 add a comment| up vote 0 down vote You need to set the preferredContentSizeproperty of the NavigationController in viewWillAppear:

Adding the following method in the delegate implementation solves the issue in iOS 7 for me : - (void)navigationController:(UINavigationController*)navigationController willShowViewController:(UIViewController*)viewController animated:(BOOL)animated { if (SYSTEM_VERSION_GREATER_THAN(@"7.0")) viewController.preferredContentSize = CGSizeMake(800,800); else viewController.contentSizeForViewInPopover = CGSizeMake(800, All rights reserved. // import UIKit class ViewController: UIViewController, UIPopoverPresentationControllerDelegate { func showPopover(base: UIView) { if let viewController = self.storyboard?.instantiateViewControllerWithIdentifier("popover") as? In such a case the popover takes the whole screen height. It caught me as well.

What is the point of update independent rendering in a game loop? By the way a quick look in NSObjCRuntime.h will confirm that both NSFoundationVersionNumber_iOS_6_0 and NSFoundationVersionNumber_iOS_6_1 are supposed to be defined as 993.00. 2. Blueprint a sestina How many seconds are a meter in the 4th dimension? As of iOS7 UITableViewCell superview is actually UITableViewCellScrollView (which is so to support sliding table cells for delete etc).

None of the above solutions worked for me pretty nicely, that is why I decided to do a little investigation and find out how this works. Changing the property directly is equivalent to animated=YES. There's a 2014 WWDC video explaining what's new with the popovercontroller where they touch on this. Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront?

Browse other questions tagged ios ipad uiimagepickercontroller ios7 uipopovercontroller or ask your own question.