• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: edgesForExtendedLayout outside of loadView/viewDidLoad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edgesForExtendedLayout outside of loadView/viewDidLoad


  • Subject: Re: edgesForExtendedLayout outside of loadView/viewDidLoad
  • From: Torsten Curdt <email@hidden>
  • Date: Fri, 17 Jun 2016 11:27:24 +0200

This is odd. This seems to eventually work

  self.edgesForExtendedLayout = UIRectEdge.None
  self.view.superview?.setNeedsUpdateConstraints()
  self.view.superview?.updateConstraintsIfNeeded()

but only after the 2nd call.

So as a work around I am calling it like this:

  self.edgesForExtendedLayout = UIRectEdge.None
  self.view.superview?.setNeedsUpdateConstraints()
  self.view.superview?.updateConstraintsIfNeeded()
  self.view.superview?.setNeedsUpdateConstraints()
  self.view.superview?.updateConstraintsIfNeeded()

I am OK for now (given it's just for testing) but I would love to
understand the "why".
cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: edgesForExtendedLayout outside of loadView/viewDidLoad
      • From: David Duncan <email@hidden>
References: 
 >edgesForExtendedLayout outside of loadView/viewDidLoad (From: Torsten Curdt <email@hidden>)

  • Prev by Date: edgesForExtendedLayout outside of loadView/viewDidLoad
  • Next by Date: H.265/HEVC encoding and decoding in mac os x using AVFoundation?
  • Previous by thread: edgesForExtendedLayout outside of loadView/viewDidLoad
  • Next by thread: Re: edgesForExtendedLayout outside of loadView/viewDidLoad
  • Index(es):
    • Date
    • Thread