Google Maps curl animation in MKMapView / Map Kit on iOS4 - iphone

Anyone know whether (and if so, how) we can create the half-turned page effect Google Maps on the iPad uses to show the options to change the Map type?..
See below image to see what I'm talkin' about..
Incidentally, any pretty good Map Kit tutorials you guys know of that are out there? (covering anything new brought on through iOS4) Support for Map Kit ain't much out there it seems...
Thanks!

It's a new UIModalTransitionStyle in iOS 4.0 called UIModalTransitionStylePartialCurl
re: good mapkit tutorials, watch the WWDC map overlays video.

Related

Is there any way to change the appearance of MKMapView?

Is there a way to manipulate the look of MKMapView (colors etc) like with Core Image and photos? I thought about making the map black and white or something like that. Someone I know did this in order to display a tiny map on the display of a Metawatch by basically taking snapshots of an MKMapView, turning them into binary images and sending them to the watch.
I need to do a similiar thing in real time (and on the iPhone's display). Hope you guys understand what I'm trying to ask here :)
Thanks in advance!
Not MapKit directly, but the MapBox iOS SDK can do that and more, plus is meant to behave like MapKit.
I found the following question (and mainly the answer) as great solution
Hiding mapview when mapoverlay is visible ios7
using MKTileOverlay and http://maps.stamen.com site
by the way .... they have http://maps.stamen.com/#toner/12/37.7706/-122.3782 which is a black and white map

iOS MapKit label building on park map

What I'm trying to achieve is that there is an event being held at Exhibition Park in Canberra (that's in Australia) which makes use of the building on the property. What I'm not sure about is how to show these buildings and label them in MapKit when they don't appear in the maps application.
Does anyone have any solutions about this? Should I just use pin points and annotations or is there a better way of accomplishing things?
Please note that I'm unfamiliar with MapKit so as much detail in the answer would be appreciated.
Thanks,
Matt.
I would recommend you use MKPinAnnotation to add pins to the map, configured to show callouts when you tap on them.
The easiest way to pickup MapKit is to watch the WWDC video on the subject, which you can download from the iOS developer portal.

Implementing tracing gestures on iPhone

I'd like to create an iPhone app that supports tracing of arbitrary shapes using your finger (with accuracy detection). I have seen references to an Apple sample app called "GestureMatch" that supposedly implemented exactly that, but it was removed from the SDK at some point and I cannot find the source anywhere via Google. Does anyone know of a current official sample that demonstrates tracing like this? Or any solid suggestions on other resources to look at? I've done some iPhone programming, but not really anything with the graphics API's or custom handling of touch gestures, so I'm not sure where to start.
If you're on 3.1.3 firmware you can use the touchesBegan, touchesChanged, and touchesEnded methods. If you were to do an iPad app on 3.2, you'd have access to gesture recognizers such as UIPanGestureRecognizer - which provides the same basic functionality but also gives you some extra information.
The problem here is that they will not give you a smooth line without some extra work on your part, but these are the basic ways to handle finger tracking.
Unfortunately I don't have any examples to give you, but check out the stuff I mentioned in the developer documentation. You should be able to at least get started from that.
I'm uncertain if gesture recognizers are available in 4.0. Might be worth checking out.

Are tile overlays possible with the iPhone's MapKit

I already have a tile source set up for use with the Google Maps JavaScript API. I am trying to translate this for use with the iPhone MapKit. I have correctly implemented the javascript zooming levels into mapkit. Whenever - (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated is called, I snap the region to the nearest zoom level based on the same center point.
Is it possible to implement a solution possibly with CATiledLayer to implement a tiling solution. Does the iPhone use the standard 256x256 tiles like google maps does natively? Any direction or help on this would be greatly appreciated. I would rather not waste a couple weeks trying to implement this if it's not possible.
FWIW, I spent quite a bit of time looking for a decent solution… before diving into a CATiledLayer example, I noticed MKOverlay and MKOverlayView — which are new in iOS 4 and plug right into a MKMapView.
Couldn’t find a good example implementation of using MKOverlays that pull arbitrary image data (say, UIImages from a remote tile server), but I tinkered around with the API enough until I got it working.
Built a simple example implementation of it in case anyone (like me) wants a reference:
http://github.com/mtigas/iOS-MapLayerDemo
Hope this helps someone out in the future.
MapKit doesn't provide much in the way of custom tile sources (in fact, it provides absolutely nothing to customize sources: you either use Google Maps or you don't). I've been working with a similar problem myself, though, and I've found RouteMe to be a pretty good solution for custom maps: http://code.google.com/p/route-me/
Built-in support exists for OpenStreetMaps, OpenAerialMaps (which is currently offline), Virtual Earth, and Yahoo Maps, but the framework makes it pretty easy to plug in your own tile source, too.
Yes, since iOS 7, MKTileOverlay will do:
https://developer.apple.com/library/ios/documentation/MapKit/Reference/MKTileOverlay_class/Reference/Reference.html

Can i use pickerview in my iphone application using cocos2d?

Duplicate:
How can i use picker view in iphone application using cocos2d ?
Hello everyone i am working on iphone gaming project.In this game i want spin some image (like reel spin).But i can not do this.Can i use picker view in this application using cocos2d.If can then give some instruction how can i do that or any different solution for this project.
You can use anything your want. I am constantly amused by the number of people who think that Cocos2d is some sort of world that you enter where you cannot bring any of your old friends. Cocos2d is just a library that makes OpenGL easy for games, and that is all it is. All it is.
I think you might benefit from trying a few easier projects first. I have made the mistake of trying to jump into something beyond my understanding, and while in the end it may have been beneficial, I sometimes wish I had learned in a more systematic manner.