Created
November 6, 2014 05:09
-
-
Save Ashton-W/94097b30829ba3e24b2f to your computer and use it in GitHub Desktop.
IBInspectable default values in Objective-C for IB_DESIGNABLE Views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (instancetype)initWithFrame:(CGRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
if (!self) { | |
return nil; | |
} | |
[self inspectableDefaults]; | |
return self; | |
} | |
- (instancetype)initWithCoder:(NSCoder *)aDecoder | |
{ | |
self = [super initWithCoder:aDecoder]; | |
if (!self) { | |
return nil; | |
} | |
[self inspectableDefaults]; | |
return self; | |
} | |
- (void)inspectableDefaults | |
{ | |
_tintImage = YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment