"assign" and "weak" are mutually exclusive

I am trying TwitPic to send an image with text via Twitter using the GSTwitPicEngine class which uses YAJLiOS,

So, I add the YAJLiOS framework to my project, and I get this (mutual exclusive error 'assign' and 'weak') in the YAJLParser.h file, which is in the YAJLiOS structure. showing Error in the next line -

@property (assign, nonatomic) __weak id <YAJLParserDelegate> delegate;

When I delete __weak, it becomes an Apple Mach-O Linker (Id) error.

Please, help. How to deal with such errors. I do not understand the reason.

+3
source share
3 answers

stupid me ...

to try

@property (unsafe_unretained, nonatomic) id <YAJLParserDelegate> delegate;
+1
source

, , , :

@property (assign) __unsafe_unretained id<YAJLParserDelegate> delegate;   

, delegate .h- ( ) __unsafe_unretained . @private:

__unsafe_unretained id<YAJLParserDelegate> delegate;
+1

, , , ... , , ( , ).

- ? - ARC... _weak _unsafe_unretained , .

0

All Articles