本文介绍了UIAlertViewStyleLoginAndPasswordInput包含更多TextFields?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
它可以为UIAlertViewStyleLoginAndPasswordInput添加更多TextFields吗?
我该怎么办?
或者还有其他可能吗?
Its possible add more TextFields to UIAlertViewStyleLoginAndPasswordInput?
How could i do?
Or there is other possibility?
推荐答案
是的,你可以这样做吗
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Your title here!" message:@"this gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[myTextField setBackgroundColor:[UIColor whiteColor]];
[myAlertView addSubview:myTextField];
[myAlertView show];
[myAlertView release];
希望这会有所帮助。
这篇关于UIAlertViewStyleLoginAndPasswordInput包含更多TextFields?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!