【发布时间】:2014-06-14 17:32:11
【问题描述】:
我已经四处寻找答案,但没有找到任何接近的答案。
以下代码:
UIAlertView *welcome = [[UIAlertView alloc] initWithTitle:@"Welcome"
message:@"Please Enter Your Credentials to Proceed"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[welcome show];
给出以下错误:
textFieldIndex (0) 超出了文本字段数组的范围
如果我将alertView 类型更改为UIAlertViewStylePlainTextInput,那么它可以工作,但我不知道为什么!
任何帮助将不胜感激。
【问题讨论】:
标签: ios objective-c cocoa-touch uialertview