最終更新:2017-02-23 (木) 15:37:21 (3050d)  

NS_ENUM
Top / NS_ENUM

The NS_ENUM and NS_OPTIONS? macros provide a concise, simple way of defining enumerations and options in C-based languages.

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

関連

  • NS_OPTIONS?