Perhaps you are not doing something wrong, and instead you are facing something like this
In a blog post, the question arose whether we needed to manually issue IBOutlets or not. As it turned out, we should. This was reproduced in iOS 3.1.3, but I have not tested it in iOS 4.0 yet.
, . simimlar, dealloc , , , - . , .
Edit:
, ~ 98, , .
2, dealloc , -, .
.
, , :
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateUI) userInfo:nil repeats:YES]
. , NSTimer target ( ViewController). NSTimer , dealloc , - (NSTimer) . , , NSTimer dealloc, .
2 :
(exsample):
- (void)setTarget:(id)value {
if (value != target) {
[target release];
target = [value retain];
}
, self.target, . nil, . Apple.