Your web-browser is very outdated, and as such, this website may not display properly. Please consider upgrading to a modern, faster and more secure browser. Click here to do so.
Apple recommends defining enums like this since Xcode 4.4:
typedef enum ShareType : NSUInteger {
kTwitter,
kFacebook,
kGooglePlus
}
They also provide a handy macro NS_ENUM:
typedef NS_ENUM(NSUInteger, ShareType) {
kTwitter,
kFacebook,
kGooglePlus
};
These definitions provide stronger type checking and better code completion.
Adding a unit test target to an existing iOS project.
This article make a comparison to the wrong and correct way to implement singleton in Objective-C.
Page 1 of 13