由于更新,我尝试更改我的应用程序的屏幕截图,但苹果给了我错误:
发生网络超时错误.请稍后再试.
有帮助吗?
问题 - 我想要一个包含标题的UIAlertView,两个带占位符的文本字段和两个按钮. 我到目前为止做了什么 - 我已经使用了这段代码,我得到的确切的UIAlertView与我提到的所有这些,但是当视图加载时似乎首先出现在底部,然后进入视图的中间.
-(void)showalert{
disclaimerAgreedAlertView = [[UIAlertView alloc] initWithTitle:@" "
message:@" "
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Login", nil];
userNameTextField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 15.0, 245.0, 25.0)];
userNameTextField.delegate=self;
[userNameTextField setBackgroundColor:[UIColor whiteColor]];
[userNameTextField setKeyboardType:UIKeyboardTypeDefault];
userNameTextField.placeholder=@"Username";
userNameTextField.secureTextEntry=NO;
[disclaimerAgreedAlertView addSubview:userNameTextField];
passwordTextField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, 245.0, 25.0)];
passwordTextField.delegate=self;
[passwordTextField setBackgroundColor:[UIColor whiteColor]];
[passwordTextField setKeyboardType:UIKeyboardTypeDefault];
passwordTextField.placeholder=@"Password";
passwordTextField.secureTextEntry=YES;
[disclaimerAgreedAlertView addSubview:passwordTextField];
disclaimerAgreedAlertView.tag=99;
[disclaimerAgreedAlertView show];
disclaimerAgreedAlertView.frame= CGRectMake(5, 400, 320, 160);
}
Run Code Online (Sandbox Code Playgroud)
然后我尝试了一些未记录的api,它们给了我想要的结果,但我担心它可能会导致我的应用程序被拒绝.
那么,任何解决方案呢?
我有一个通用应用程序,我的问题是,如果可以在我的UIWebview中加载两个不同的html文件,具体取决于iDevice.
谢谢你的回答.