Objective-C Enums

preview_player
Показать описание
Enumerators are a great way of defining predefined constant variables that can be passed around into methods between classes. Objective-C has a macro called NS_ENUM that makes it very easy to create integer based enumerators that work in C as well as Swift.
Рекомендации по теме
Комментарии
Автор

I'm from Swift to learn OC, could I use NSString for enum type, like say I would like to store some namespace in enum.

ZhouHaibo
join shbcf.ru