UIButton(TKCategory) Category Reference
| Declared in | UIButton+TKCategory.h UIButton+TKCategory.m |
Class Methods
buttonWithFrame:
Creates and returns a new button of type UIButtonCustom with the specified frame.
+ (instancetype)buttonWithFrame:(CGRect)frameParameters
- frame
The frame for the button view.
Return Value
A newly create button.
Declared In
UIButton+TKCategory.hbuttonWithFrame:image:
Creates and returns a new button of type UIButtonCustom with the specified frame and image.
+ (instancetype)buttonWithFrame:(CGRect)frame image:(UIImage *)imageParameters
- frame
The frame for the button view.
- image
The image for
UIControlStateNormal.
Return Value
A newly create button.
Declared In
UIButton+TKCategory.hbuttonWithFrame:image:highlightedImage:
Creates and returns a new button of type UIButtonCustom with the specified frame, title and background image.
+ (instancetype)buttonWithFrame:(CGRect)frame image:(UIImage *)image highlightedImage:(UIImage *)highlightedImageParameters
- frame
The frame for the button view.
- image
The image for
UIControlStateNormal.
- highlightedImage
The image for
UIControlStateHighlighted.
Return Value
A newly create button.
Declared In
UIButton+TKCategory.hbuttonWithFrame:title:
Creates and returns a new button of type UIButtonCustom with the specified frame and title.
+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)titleParameters
- frame
The frame for the button view.
- title
The title for
UIControlStateNormal.
Return Value
A newly create button.
Declared In
UIButton+TKCategory.hbuttonWithFrame:title:backgroundImage:
Creates and returns a new button of type UIButtonCustom with the specified frame, title and background image.
+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title backgroundImage:(UIImage *)backgroundImageParameters
- frame
The frame for the button view.
- title
The title for
UIControlStateNormal.
- backgroundImage
The background image for
UIControlStateNormal.
Return Value
A newly create button.
Declared In
UIButton+TKCategory.hbuttonWithFrame:title:backgroundImage:highlightedBackgroundImage:
Creates and returns a new button of type UIButtonCustom with the specified frame, title and background image.
+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title backgroundImage:(UIImage *)backgroundImage highlightedBackgroundImage:(UIImage *)highlightedBackgroundImageParameters
- frame
The frame for the button view.
- title
The title for
UIControlStateNormal.
- backgroundImage
The background image for
UIControlStateNormal.
- highlightedBackgroundImage
The background image for
UIControlStateHighlighted
Return Value
A newly create button.
Declared In
UIButton+TKCategory.h