Im developing a little navigation based application. Part of the programe, It passes CGpoint value to its superclass. There is no problem on the first attempt but error always occurs when re run the same process right after first execution. Is this because about memory management? I just dont get what I have done wrong.
delegation from child
[self.delegate sendPosition:position];
method on Rootclass
-(void) sendPosition:(CGPoint)position{
dLabel.text = [NSString stringWithFormat:@"%f",position.x];
}
A delegate is not the same as a super class. I’m guessing your delegate disappears but you are still calling it later. Go over your memory management indeed. Make sure that the delegate is still around, or sticks around, or nullify delegate properties if you need to destroy the delegate instance for some reason.