Discussion Forums  >  Uncategorized

Replies: 2    Views: 387

appvision
Aspiring developer
Profile
Posts: 139
Reg: Jan 20, 2011
location unknow...
1,390
01/21/11 05:19 AM (15 years ago)

Location map problem

I want the initial location map state to show a pin in a street map and not show the location of the iphone simulator. No matter what change I make the initial state is a map of the US showing the simulator in Cupertino. What am I doing wrong?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/21/11 08:59 AM (15 years ago)
You're not doing anything wrong. The map is showing the user's location of the SIIMULATOR - it will always report Cuptertino (Apple Headquarters). This is logical, the Simulator doesn't know where it is ;-) If you don't want the users location to show up on the map when it first loads... you'll need to make an adjustment to the source-code. Look in the /Screen_LocationMap folder and find this file: MapViewController.m In this file, there is a setting that tells the map to show the users location. It reads: self.mapView.showUserLocation = YES Feel free to change this to self.mapView.showUserLocation = NO Doing that will prevent the map from showing the users location when it first loads.
 
appvision
Aspiring developer
Profile
Posts: 139
Reg: Jan 20, 2011
location unknow...
1,390
like
01/21/11 09:34 AM (15 years ago)
That does it! Thanks very much.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.