Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply defaults before calling super -initWithCoder #15

Closed
wants to merge 1 commit into from
Closed

Apply defaults before calling super -initWithCoder #15

wants to merge 1 commit into from

Conversation

ryanmasondavies
Copy link

Allows interface builder to override KGNoise defaults if needed. I needed this when the view kept coming out as grey regardless of the colors I set in IB.

Allows interface builder to override KGNoise defaults if needed.
@kgn kgn closed this in 4e8fcac Dec 7, 2013
@kgn
Copy link
Owner

kgn commented Dec 7, 2013

This code maybe working but will most likely cause other problems because with this change setup would not be called because when it is called self has not been initialized yet so [self setup] would be a no-op. I updated the code so that the color is only changed to grey if self.backgroundColor == nil so this should solve your problem and maintain the rest of what setup does. Thanks for the pull request!

@ryanmasondavies
Copy link
Author

Looks good! Thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants