Adding a UIActivityIndicator to a modal view (ELCimagepicker)

后端 未结 3 1257
挽巷
挽巷 2021-01-06 17:40

I\'ve added the ELCimagepicker (https://github.com/Fingertips/ELCImagePickerController) to my project and it works perfectly, allowing the user to select multiple images for

3条回答
  •  心在旅途
    2021-01-06 18:22

    I solved the issue like this

         activityIndicatorObject = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    
         // Set Center Position for ActivityIndicator
    
         activityIndicatorObject.center = CGPointMake(150, 250);
         activityIndicatorObject.backgroundColor=[UIColor grayColor];
    
         // Add ActivityIndicator to your view
         [self.view addSubview:activityIndicatorObject];
    
         activityIndicatorObject.hidesWhenStopped=NO;
    
         [activityIndicatorObject startAnimating];
    

提交回复
热议问题