SKUButtonLabelProperties
IntroductionStores a single state for labels in buttons. The properties set on this object gets passed to the button's label for the appropriate state. Methods
propertiesWithText:+(SKUButtonLabelProperties*)propertiesWithText:(NSString *)text; ParametersReturn ValueSKUButtonLabelProperties object DiscussionCreates and returns an object with default properties for everything but the text. propertiesWithText:andColor:andSize:andFontName:+(SKUButtonLabelProperties*)propertiesWithText:(NSString *)text andColor:(SKColor *)fontColor andSize :(CGFloat)fontSize andFontName:(NSString *)fontName; ParametersReturn ValueSKUButtonLabelProperties object DiscussionCreates and returns an object with default properties for position offset and scale (CGPointZero and 1.0f respectively). propertiesWithText:andColor:andSize:andFontName:andPositionOffset:andScale:+(SKUButtonLabelProperties*)propertiesWithText:(NSString *)text andColor:(SKColor *)fontColor andSize :(CGFloat)fontSize andFontName:(NSString *)fontName andPositionOffset:(CGPoint)position andScale:(CGFloat)scale; Parameters
Return ValueSKUButtonLabelProperties object DiscussionCreates and returns an object allowing you to set all properties explicitly. PropertiesfontColor@property (atomic, strong) SKColor* fontColor; DiscussionfontColor object fontName@property (nonatomic) NSString* fontName; DiscussionfontName string fontSize@property (nonatomic) CGFloat fontSize; DiscussionfontSize value position@property (nonatomic) CGPoint position; DiscussionCGPoint of positional data scale@property (nonatomic) CGFloat scale; Discussionscale value text@property (nonatomic) NSString* text; Discussiontext string |