如题,哪位知道请帮忙解惑,急!急!急!
4条回答 默认 最新
_无事莫登旧人梦 2015-10-29 16:05关注附上源码
-
(void)buidl
{
UIAlertView *customAlertView = [[[UIAlertView alloc] initWithTitle:@"自定义服务器地址" message:nil delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil] autorelease];
[customAlertView setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput];UITextField *nameField = [customAlertView textFieldAtIndex:0];
nameField.placeholder = @"请输入一个名称";UITextField *urlField = [customAlertView textFieldAtIndex:1];
[urlField setSecureTextEntry:NO];
urlField.placeholder = @"请输入一个URL";
urlField.text = @"http://";[customAlertView show];
}
解决 无用评论 打赏 举报-