I have a class just to pull data from a URL. This is not a UIview class. I want to show a Activity Indicator while downloading the data.
So, how can I add it to the app view? Of course [self.view addSubview… is not the way…
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.
It’s not the job of your model object to display any UI. It is the job of the controller is to mediate between the data and the views of your application.
For example, your controller may have a method that starts up your data class and fetches some data. Here it would also display an activity indicator. When your class finishes handing the data back, the controller will remove the spinner from the screen. This keeps the components of your app, reusable. Especially model objects.