iphone - How to get back to my app after going to map app from my application in ios 6 -


i using code display location on map.

class mapitemclass = [mkmapitem class]; if (mapitemclass && [mapitemclass respondstoselector:@selector(openmapswithitems:launchoptions:)]) {     // create mkmapitem pass maps app     cllocationcoordinate2d coordinate =     cllocationcoordinate2dmake(37.789658,-122.417479);     mkplacemark *placemark = [[mkplacemark alloc] initwithcoordinate:coordinate                                                    addressdictionary:nil];     mkmapitem *mapitem = [[mkmapitem alloc] initwithplacemark:placemark];     [mapitem setname:@"my place"];      // set directions mode "walking"     // can use mklaunchoptionsdirectionsmodedriving instead     nsdictionary *launchoptions = @{mklaunchoptionsdirectionsmodekey : mklaunchoptionsdirectionsmodedriving};     // "current user location" mkmapitem     mkmapitem *currentlocationmapitem = [mkmapitem mapitemforcurrentlocation];     // pass current location , destination map items maps app     // set direction mode in launchoptions dictionary     [mkmapitem openmapswithitems:@[currentlocationmapitem, mapitem]                    launchoptions:launchoptions]; } 

this code taking me apple map app present in iphone, ok not taking me app. if 1 know solution achieve please suggest me. !!thanks in advance.!!

unfortunately want cannot done.

once send user app, way app become active again app return user app, or user navigate app.

the maps application of not return user app. there nothing can do.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -