Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MarcVanH

macrumors newbie
Original poster
Sep 12, 2008
15
0
Does anyone know if there is a system item for a "locate me" style button? I'm referring to the button in "Maps" lower left corner, with a radar scope type graphic that turns into an "activity indicator" when it is finding your location.

Do I need to create my own graphics to make one of these, or is there a built-in shortcut?
 

detz

macrumors 65816
Jun 29, 2007
1,051
0
I don't recall seeing one, just subclass the button and make your own
 

ace2600

macrumors member
Mar 16, 2008
71
0
Austin, Texas
I needed the same thing about 6 weeks back, but no luck. If anyone knows of a package of standard iphone icons (free or paid) like the favorites image, refresh image, the location image, etc, I would greatly appreciate it.

Attached is the location button I made. I am by no means even close to a graphic designer, but this looks decent on a button on the phone.

Here's the code I used for the button:
Code:
UIImage *buttonImage = [UIImage imageNamed:@"locate.png"];
UIBarButtonItem *locateButton = [[[UIBarButtonItem alloc] initWithImage:buttonImage style:UIBarButtonItemStyleBordered target:self action:@selector(startLocating:)] autorelease];
[[self navigationItem] setRightBarButtonItem:locateButton];
 

Attachments

  • locate.png
    locate.png
    399 bytes · Views: 1,797

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
If anyone knows of a package of standard iphone icons (free or paid) like the favorites image, refresh image, the location image, etc,
The SDK provides access to many of these through UIBarButtonSystemItem and UITabBarSystemItem.
For example,
Favorites = UITabBarSystemItemFavorites
Refresh = UIBarButtonSystemItemRefresh
Location = sorry, not yet in SDK
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.