RZVibrantButton icon indicating copy to clipboard operation
RZVibrantButton copied to clipboard

self.style: EXC_BAD_ACCESS (code=2)

Open nderkach opened this issue 10 years ago • 1 comments

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?

nderkach avatar Aug 22 '15 23:08 nderkach

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.

SteffeyDev avatar Dec 17 '15 21:12 SteffeyDev