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

The current deployment target does not support automated __weak references #3

Closed
pcecchetti opened this Issue Jun 7, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@pcecchetti

pcecchetti commented Jun 7, 2012

If you try to use it in a 4.3 target environment with ARC you get the error
The current deployment target does not support automated __weak references

Solution
in MNCustomLabel.h

add

ifndef MB_WEAK

if __has_feature(objc_arc_weak)

define MB_WEAK weak

elif __has_feature(objc_arc)

define MB_WEAK unsafe_unretained

else

define MB_WEAK assign

endif

endif

change
@Property (nonatomic, MB_WEAK) id delegate;

@rhaining

This comment has been minimized.

Show comment
Hide comment
@rhaining

rhaining Jun 7, 2012

Contributor

I'm only using this in 5.0+. if you want to back-support 4.3, you can fork the repository. let me know, i'd be happy to link to you!

Contributor

rhaining commented Jun 7, 2012

I'm only using this in 5.0+. if you want to back-support 4.3, you can fork the repository. let me know, i'd be happy to link to you!

@rhaining rhaining closed this Nov 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment