开发者

Why textFieldShouldBeginEditing method cannot be triggered?

I has declared in .h file

@interface TextFieldDemoViewController : UIViewController <UITextFieldDelegate>

and implements this protocol method

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
NSLog(@"OK");
return NO;
}

Build and click a textfield, but nothing happen. Did I miss something?


OK, I has resolved 开发者_运维问答it: Connect textfield's Outlet 'delegate' to File's owner in IB


Connect textfield's Outlet 'delegate' to File's owner in IB

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜