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

self.style: EXC_BAD_ACCESS (code=2) #1

Open
nderkach opened this issue Aug 22, 2015 · 1 comment
Open

self.style: EXC_BAD_ACCESS (code=2) #1

nderkach opened this issue Aug 22, 2015 · 1 comment

Comments

@nderkach
Copy link

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?

@SteffeyDev
Copy link

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.

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

No branches or pull requests

2 participants