• 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: Trouble with imported enums in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with imported enums in Swift


  • Subject: Re: Trouble with imported enums in Swift
  • From: Rick Mann <email@hidden>
  • Date: Tue, 21 Oct 2014 11:38:05 -0700

> On Oct 21, 2014, at 09:18 , Raglan T. Tiger <email@hidden> wrote:
>
>
>
>
>> On Oct 20, 2014, at 10:53 PM, Rick Mann <email@hidden> wrote:
>>
>> Sigh, I figured it out. Not only do you have to use NS_ENUM, the enumeration members MUST begin with the name of the enumeration.
>
>
> Example please ... I feel unfulfilled.

It's precisely as shown here (if not spelled out in words), under "Enumerations":

https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/InteractingWithCAPIs.html

typedef NS_ENUM(NSInteger, UITableViewCellStyle)
{
    UITableViewCellStyleDefault,
    UITableViewCellStyleValue1,
    UITableViewCellStyleValue2,
    UITableViewCellStyleSubtitle
};

--
Rick Mann
email@hidden



_______________________________________________

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: Trouble with imported enums in Swift
      • From: Greg Parker <email@hidden>
References: 
 >Trouble with imported enums in Swift (From: Rick Mann <email@hidden>)
 >Re: Trouble with imported enums in Swift (From: Roland King <email@hidden>)
 >Re: Trouble with imported enums in Swift (From: Rick Mann <email@hidden>)
 >Re: Trouble with imported enums in Swift (From: Roland King <email@hidden>)
 >Re: Trouble with imported enums in Swift (From: Rick Mann <email@hidden>)
 >Re: Trouble with imported enums in Swift (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: Re: Trouble with imported enums in Swift
  • Next by Date: Re: Trouble with imported enums in Swift
  • Previous by thread: Re: Trouble with imported enums in Swift
  • Next by thread: Re: Trouble with imported enums in Swift
  • Index(es):
    • Date
    • Thread