How to customize UIAlertView? Will Apple approve it?

后端 未结 8 1974
逝去的感伤
逝去的感伤 2021-02-04 18:48

I am using a custom UIAlertView with UITextField to get password from the user.

I have been told that this custom view may cause my App to get

8条回答
  •  囚心锁ツ
    2021-02-04 19:16

    You can add a textfield to your UIAlertView

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"title" message:@"msg" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
    UITextField *txtField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
    [alertView addSubview:txtField];
    [alertView show];
    [alertView release];
    

提交回复
热议问题