I am developing an iPhone app with ARC option enabled. i am creating IBOutlets in .h files which are connected from file owners icon to .xib elements.for eg.
IBOutlet UIButton *bt;
@property(nonatomic,retain)IBOutlet UIButton *bt;
in .m file, i am doing
@synthesize bt;
Is there a need to explicitly set bt
to nil in viewDidUnload
method? i.e. self.bt = nil;
in viewDidUnload
?
Also, do I need to write dealloc
method with ARC option enabled? When should I make IBOutlets elements as strong and weak references with ARC enabled?