How can I go about adding a view that appears until the background task finishes (the task in question populates a view and takes ~5 seconds).
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Okay, after much trial and error I found a solution. In my case I wanted to show a view whilst my tabbarviewcontroller initialised, and due to the content within it this took 5 – 10 seconds. So to improve user experience I wanted an image to appear. Peter, the method you posted unfortunately didn’t quite solve the problem as despite calling the view to be in view until after the tabview was called to appear, it was removed automatically.
So, what I did was set up an NSTimer for 10 seconds, and after the 10 seconds hide the view. Making sure I had
[self.window bringSubviewToFront:imageview];set to insure the tabbar didn’t appear over the loading view.