• 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: specifying UIInterfaceOrientationMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: specifying UIInterfaceOrientationMask


  • Subject: Re: specifying UIInterfaceOrientationMask
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 12 Jul 2016 12:11:30 -0700
  • Feedback-id: 167118m:167118agrif8a:167118s1sGDWi1o8:SMTPCORP

On Jul 12, 2016, at 11:25 , William Squires <email@hidden> wrote:
>
> what dumb Swift feature am I overlooking now?

It’s an OptionsSet now, so you specify compound values with an array literal form. In Swift 3, with API swiftification, it’ll be something like:

	return [.portrait, .landscapeLeft]

In Swift 2.2, the names may be slightly different.



_______________________________________________

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


References: 
 >specifying UIInterfaceOrientationMask (From: William Squires <email@hidden>)

  • Prev by Date: Re: specifying UIInterfaceOrientationMask
  • Next by Date: Exact semantics of NSThread executation states?
  • Previous by thread: Re: specifying UIInterfaceOrientationMask
  • Next by thread: Exact semantics of NSThread executation states?
  • Index(es):
    • Date
    • Thread