An activity indicator view is useful in many applications. Any ideas about how to add, activiate and dismiss an activity indicator view on iPhone?
All the methods for this are welcomed here.
An activity indicator view is useful in many applications. Any ideas about how to add, activiate and dismiss an activity indicator view on iPhone?
All the methods for this are welcomed here.
Take a look at the open source WordPress application. They have a very re-usable window they have created for displaying an "activity in progress" type display over top of whatever view your application is currently displaying.
http://iphone.trac.wordpress.org/browser/trunk
The files you want are:
Then to show it use something like:
And hide with:
Using Storyboard-
Create-
Go to the header file and create an IBOutlet for the UIActivityIndicatorView-
Establish the connection from the Outlets to the UIActivityIndicatorView.
Start:
Use the following code when you need to start the activity indicator using following code in your implementation file(.m)-
Stop:
Use the following code when you need to stop the activity indicator using following code in your implementation file(.m)-
Create:
Start:
Stop:
When you're finally done, remove the spinner from the view and release.
Activity indicator 2 sec show and go to next page
in regards to:
note that if you do utilise this code you MUST provide ALL the sourcecode to your own application to any user that requests it. You need to be aware that they may decide to repackage your code and sell it on the store themselves. This is all provided for under the terms of the GNU General Public License (GPL).
If you don't want to be forced into opening your sourcecode then you cannot use anything from the wordpress iphone application including the, referenced activity progress window, without forcing the GPL to apply to your own.
i think you should use hidden better.