0
Возможно ли добавить TextFields в UIAlertViewStyleLoginAndPasswordInput?
Как я мог это сделать?
Или есть другие возможности?UIAlertViewStyleLoginAndPasswordInput с большим количеством текстовых полей?
Возможно ли добавить TextFields в UIAlertViewStyleLoginAndPasswordInput?
Как я мог это сделать?
Или есть другие возможности?UIAlertViewStyleLoginAndPasswordInput с большим количеством текстовых полей?
Да, это возможно, что вы можете сделать это, как этот
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Your title here!" message:@"this gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[myTextField setBackgroundColor:[UIColor whiteColor]];
[myAlertView addSubview:myTextField];
[myAlertView show];
[myAlertView release];
Надеется, что это помогает.
FYI - Как я уже говорил, изменение иерархии представления UIAlertViews было явно запрещено. Теперь это будет невозможно. http://stackoverflow.com/questions/18729220/uialertview-addsubview-in-ios7 – vikingosegundo
Fairplay (необходимо использовать больше символов) – Popeye