- (id)initWithDelegate:(id)delegate
{
self = [super init];
if (self)
{
_delegate = delegate;
}
return self;
}
Is it generally recommended to pass in the delegate in the init method? what about in another method that will be called first?
Also do I need to set _delegate to nil or release in the dealloc or viewDidUnload method? and what about the dealloc or viewDidUnload method of the controller implementing this delegate?