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

buttonTitles should be used like self.buttonTitiles ,I cost three 3 hours on this #3

Closed
ghost opened this issue Sep 22, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2013

No description provided.

@wimagguc
Copy link
Owner

Hey, thanks. Can you give more details on this?

@twlopes
Copy link

twlopes commented Oct 10, 2013

I am guessing I had the same issue on this. I was implementing this on a non-arc project and was getting an error as the buttonTitles was being released early. The change I did to fix this was to modify everywhere buttonTitles was being referenced to self.buttonTitles. That way it would use the property declarations and retain it.

e.g.
buttonTitles = @[@"Close"]; to self.buttonTitles = @[@"Close"];

@wimagguc
Copy link
Owner

you don't need to "fix" these issues one-by-one to use an arc file in a non-arc project: you can use fobjc-arc, as explained in http://stackoverflow.com/questions/10523816/how-to-enable-arc-for-a-single-file

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