MapKit on iPad
MapKit on iPad
- Subject: MapKit on iPad
- From: William Squires <email@hidden>
- Date: Sun, 7 Nov 2010 20:41:51 -0600
Three questions:
1) I know that an MKMapView can display a location given GPS coords,
and that it can do reverse geo-caching to get the nearest address to
a GPS coordinate. Can it go the other way - i.e. can I feed it an
address (in an NSString) of the form: "<physical
address>,<city>,<state> <zip>" (these are all US addresses) and get
it to show that location directly, or at least give me the GPS coords
to feed to it? Will it work for addresses in Mexico (if I leave off
the zip code)?
2) Can I take a snapshot of an MKMapView (in a format UIImage can
handle) and use it to cache the display once the MKMapView loads and
the user is finished zooming in/out, sliding it around, etc... by
touching a UIButton?
Basically, I have a database (in SQLite3) that has a blob field to
hold the picture.
* If the blob is NULL, then the MKMapView should show the address
(displayed on the same parent view as the MKMapView using
UITextFields) as above. Once the user is satisfied with the display,
they can either touch a UIButton with the caption "Capture", or
select another record (in the RootViewController - the
DetailVeiwController manages the larger view (in a SplitView iOS
project) that has the UITextFields for the other database fields
(store #, cocode, store name, city, state, zip, phone, etc...).
* If the blob is not null, it'll use the UIImage control to show
the cached map image (for speed) instead, and hide (make invisible)
the MKMapView. If the user edits the address, or clicks the "Reload
Map" UIButton, it'll NULL the blob field, make the UIImage view
invisible, and make the MKMapView visible and load the (possibly new)
address as above in question 1.
3) what are the odds Apple dev would be willing to update the iPhone
simulator to be initialized to display any GPS coords (when using an
MKMapView) instead of their corporate HQ if I file a feature request?
Even better if the simulator, on startup, would detect any iDevice
(iPod Touch/iPhone/iPad) and use its hardware features (GPS,
accelerometer, mag compass, camera, etc...) during the simulation if
the device shows up in Xcode's Organizer window. It would be OK if
you had to load a special iOS program onto the device (from the App
store) to make this work as long as it was free for those in the iOS
dev program (i.e. they paid the $99 fee)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden