Jump to content

Adding an Activity Indicator on a Navigation Bar Button, in iOS SDK (Done the Proper Way)

0
  VandadNP's Photo
Posted Feb 20 2011 06:03 AM

You want to add a UIActivityIndicator in iOS SDK on top of a navigation bar button and you have searched everywhere for a solution. Wherever you went, they said “initialize your UIBarButtonItem with a custom view”. But you know what? That doesn’t quite do the trick.

What you want is this:
Posted Image

And they keep showing you a solution that does this:
Posted Image

To explain how you should do it the right way (first image), have a look at my screencast here. Make sure to leave a comment!


Cover of iOS 4 Programming Cookbook
Learn more about this topic from iOS 4 Programming Cookbook. 

You can build a variety of amazing apps on the iOS platform—and every one of them presents a unique set of problems. With the recipes in this cookbook, you'll go beyond theory to solve the vexing, real-life issues you’re likely to face when creating apps for the iPhone, iPad, or iPod Touch. Complete with solutions for problems faced by beginning, intermediate, and advanced developers, this book will take you from concept all the way to the App Store.

Learn More Read Now on Safari


0 Replies