why retain of delegate is wrong what are all alternatives...?

Posted by jeeva on Stack Overflow See other posts from Stack Overflow or by jeeva
Published on 2010-05-28T07:56:23Z Indexed on 2010/05/28 8:02 UTC
Read the original article Hit count: 314

Filed under:
|
|

Hi,

I have one problem let assume A and B are 2 view controller from A user push to B view controller,In B user starts some download by creating object C(which is NSObject class) and sets B as delegate to C(assign),now user want go back to A then dealloc of B calls object releases, C delegate fails to give call back(crashes).I want to get call and allow user to move to other view controller thats way i am retain the delegate in C class but retain of delegate is wrong ...

what are all solutions ...

Thanks in Advance.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch