Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 669 Bytes

File metadata and controls

22 lines (17 loc) · 669 Bytes

Typical use

MDCButton is a subclass of UIButton, but with more options for customizing the button's style and behavior. To initialize an MDCButton, you must alloc/init an instance directly instead of using buttonWithType:, which has been marked unavailable.

Swift

let button = MDCButton()

Objective-C

MDCButton *button = [[MDCButton alloc] init];

See the MDCButton API docs for a complete list of features that MDCButton provides in addition to UIButton's features.