want to display UIProgressView on UIAlertView

前端 未结 6 354
挽巷
挽巷 2021-01-03 07:45

Hi guys i want to display UIProgressView on UIAlertView for displaying the processing of uploading of the file but i have searched too much and also find on that link but si

6条回答
  •  走了就别回头了
    2021-01-03 07:51

    This is create a alert view

    UIAlertController* alert=[UIAlertController alertControllerWithTitle:@"Message" message:@"This is test" preferredStyle:UIAlertControllerStyleAlert];

    now add textfield

    [alert addTextFieldWithConfigurationHandler:^(UITextField *textField)
     {
         textField.placeholder=@"Enter Text label";
         [textField setBorderStyle:UITextBorderStyleRoundedRect];
         textField.backgroundColor=[UIColor whiteColor];
     }];
    

    and added it on view

    [self presentViewController:alert animated:YES completion:nil];

提交回复
热议问题