SCPSelectionButtonBuilder
Objective-C
@interface SCPSelectionButtonBuilder : SCPBuilder <SCPSelectionButton *>
Swift
class SelectionButtonBuilder : SCPBuilder<SelectionButton>
Builder class for SCPSelectionButton
.
-
Initializes a new instance of the
SCPSelectionButtonBuilder
class with the provided title.Declaration
Objective-C
- (nonnull instancetype)initWithStyle:(SCPSelectionButtonStyle)style text:(nonnull NSString *)text;
Swift
init(style: SelectionButtonStyle, text: String)
-
Declaration
Objective-C
- (nonnull SCPSelectionButtonBuilder *)setStyle:(SCPSelectionButtonStyle)style;
Swift
func setStyle(_ style: SelectionButtonStyle) -> SelectionButtonBuilder
-
Declaration
Objective-C
- (nonnull SCPSelectionButtonBuilder *)setText:(nonnull NSString *)text;
Swift
func setText(_ text: String) -> SelectionButtonBuilder
-
Unavailable
Use
initWithStyle
.Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Use
initWithStyle
.Declaration
Objective-C
+ (nonnull instancetype)new;