I get NSCFData resignFirstResponder - unrecognized selector sent to instance. But why?
@interface { UITextField *Field; } @end
@implementation
-(BOOL) textFieldShouldBeginEditing:(UITextField*)textField {
Field = textField;
return YES;
}
-(void) viewWillDisappear:(BOOL)animated
{
[Field resignFirstResponder];
}
@end
my call stack
0 CoreFoundation 0x35f08c7b __exceptionPreprocess + 114 1874 1 libobjc.A.dylib 0x30186ee8 objc_exception_throw + 40 1875 2 CoreFoundation 0x35f0a3e3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 98 1876 3 CoreFoundation 0x35eaf467 ___forwarding___ + 506 1877 4 CoreFoundation 0x35eaf220 _CF_forwarding_prep_0 + 48 1878 5 MegaDish 0x000187eb -[MapViewController viewWillDisappear:] + 34 1879 6 UIKit 0x3389d438 -[UINavigationController viewWillDisappear:] + 112