textfeild监听事件

2016-08-08  本文已影响0人  长风破浪初学者

[self.Email addTarget:self action:@selector(EmailActon) forControlEvents:(UIControlEventEditingDidEnd)];

-(void)EmailActon

{

if ( [self isValidateEmail:self.Email.text] ==YES ) {

[self setAlertViewTitle:@"邮箱对了" message:nil];

[self.Phone addTarget:self action:@selector(PhoneActon:) forControlEvents:(UIControlEventEditingDidEnd)];

[self setAlertViewTitle:@"提示" message:@"资料没完善"];

}else{

[self setAlertViewTitle:@"邮箱格式有误" message:nil];

}

}

上一篇 下一篇

猜你喜欢

热点阅读