Created
October 23, 2014 08:23
-
-
Save DylanVann/9f29c46d3a4520e571e1 to your computer and use it in GitHub Desktop.
DVColorLockView - Objective-C
This file contains hidden or 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
| #import <Foundation/Foundation.h> | |
| @interface DVColorLockView : UIView | |
| @property (nonatomic, strong) UIColor *lockedBackgroundColor; | |
| @end |
This file contains hidden or 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
| #import "DVColorLockView.h" | |
| @implementation DVColorLockView | |
| - (UIColor *)lockedBackgroundColor { | |
| return super.backgroundColor; | |
| } | |
| - (void)setLockedBackgroundColor:(UIColor*)color | |
| { | |
| super.backgroundColor = color; | |
| } | |
| - (void)setBackgroundColor:(UIColor *)color | |
| { | |
| //Don't set it. | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment