RZVibrantButton
RZVibrantButton copied to clipboard
self.style: EXC_BAD_ACCESS (code=2)
I'm using the following code to init a button:
var invertButton:RZVibrantButton = RZVibrantButton(frame:CGRectZero, style:RZVibrantButtonStyle.Invert)
required public init(frame:CGRect, style:RZVibrantButtonStyle)
{
super.init(frame: frame)
self.style = style
commonInit()
}
The assignment of style property produces a segfault. Any ideas what it might be?
I referenced this in the issue I raised, it has to do with the fact that setting the style causes recursion because of the way the style variable is set up. I'm working on fixing it and will submit a pull request when I'm done.