@property (nonatomic, strong) UIImage *inactiveImage;
@property (nonatomic, strong) UIImage *inactiveHighlightedImage;
@property (nonatomic, strong) UIImage *activeImage;
@property (nonatomic, strong) UIImage *activeHighlightedImage;
@property (nonatomic, strong) UIImage *likedIcon;
@property (nonatomic, strong) UIImage *unlikedIcon;
Socialize Like Button¶
Introduction¶
In v1.7 of the Socialize SDK for iOS is a new stand-alone Like Button. This is simply the “like” capablity of Socialize contained in a self-standing UI element which can be easily customized to suit your app.
Displaying the Like Button¶
The Like Button is itself a view. To use the Like Button, simply instantiate it and add it to your view hierarchy.
Customizing the Like Button¶
All of the images on the like button can be changed. To do this, just set the appropriate property. The full list of image properties is:
NOTE: For iOS 7, the Like Button has been redesigned with a “flatter” look, something you may want to consider when designing custom images for it. For references, Apple’s guidelines on iOS 7 UI can be found here.
Refreshing the Like Button¶
The Like Button has an explicit refresh call.
Changing the Like Button’s Entity¶
The Like Button’s current entity can be changed by setting the entity property.
Note
An explicit refresh is not required when changing the entity