나는 엑스 코드 4.6 및 iOS 6. 지금 엑스 코드 5텍스트 입력하여 팝업 7
를 사용하여 아이폰 OS 7로 업그레이드하고 구축 된 응용 프로그램이 난에 완벽하게 작동이 코드를 iOS 6. UITextField를 사용하여 팝업을 가져 오는 것은 무엇입니까? 사용자는 원하는 텍스트를 입력하고 OK를 누릅니다. 나는 그들의 텍스트를 가지고 그것을 UILabel에 넣는다.
내가 가진 문제는 iOS 7에서이 팝업 텍스트 상자를 가져올 때 편집 할 수 없다는 것입니다. 만지는 것은 아무 것도하지 않습니다. 어째서?
는 다음 코드와 스크린 샷
// ************
// ENTER TEXT
// ************
-(IBAction)insertText
{
UIAlertView* dialog = [[UIAlertView alloc] initWithTitle:@"Enter Text \n"
message:@"\n\n Keep it short and sweet"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK", nil];
nameField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, 245.0, 25.0)];
[nameField setBackgroundColor:[UIColor whiteColor]];
[dialog addSubview:nameField];
[dialog show];
}
나중에 참조 할 수 있도록 - http://stackoverflow.com/questions/6319417/whats-a-simple-way-to-get-a-text-input-popup-dialog-box-on-an-iphone –