我有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