我有13个文本字段。我想设置视图动画只有4将显示在文本框底部将UITextField委托设置为所有UITextField并为几个文本字段设置视图动画
这里是我的代码:
if (textField.editing != ((_GET_companyname)||(_GET_firstname)||(_GET_middlename)||(_GET_lastname)||(_GET_companyurl)||(_GET_streetaddress)||(_GET_postbox)||(_GET_code)||(_GET_phonenum)))
{
NSLog(@"Entered in condition");
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
//Keyboard becomes visible
[UIView beginAnimations:nil context:NULL];
// [UIView setAnimationDuration:0.25];
self.view.frame = CGRectMake(0,-200,self.view.frame.size.width,self.view.frame.size.height);
[UIView commitAnimations];
}
}
else
{
NSLog(@"Entered else Part");
}
我需要下面的设置为所有14个文本框
-(BOOL) textFieldShouldReturn:(UITextField *)textField{
[textField resignFirstResponder];
return YES;
}
是什么_GET_companyname和其他人呢? –
那么问题是什么? – Andy
我有13个文本字段我想设置文本视图为全部设置并将Uiview动画设置为4个文本字段@Andy – Jayasabeen