我的應用程序最近因使用私有API而被拒絕(addTextField:
方法適用於UIAlertView
,這非常有用,我可以添加)。任何非私有API的替代品?
是否有任何非私人的替代UIAlertView
的無證addTextFieldWithValue:label:
?
非常感謝!
我的應用程序最近因使用私有API而被拒絕(addTextField:
方法適用於UIAlertView
,這非常有用,我可以添加)。任何非私有API的替代品?
是否有任何非私人的替代UIAlertView
的無證addTextFieldWithValue:label:
?
非常感謝!
創建文本字段作爲UIAlertView中
// Ask for Username and password.
alertView = [[UIAlertView alloc] initWithTitle:_title message:@"\n \n \n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
// Adds a username Field
utextfield = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
utextfield.placeholder = @"Username";
[utextfield setBackgroundColor:[UIColor whiteColor]];
utextfield.enablesReturnKeyAutomatically = YES;
[utextfield setReturnKeyType:UIReturnKeyDone];
[utextfield setDelegate:self];
[alertView addSubview:utextfield];
// Show alert on screen.
[alertView show];
[alertView release];
退房GitHub上的這個開源的代碼添加UITextFields到UIAlertView中的一個子視圖。
好戲。 (小記:錯過了utextfield的發佈。) – 2010-09-24 05:26:30
非常感謝!希望現在我不必等待兩個星期纔能有人拒絕我的應用程序。 – esqew 2010-09-24 19:29:15