Posts

Showing posts from March, 2013

Show path from Current Location Tutorial.

APPLE  integrate new feature to show route. Requirement ->  OS version should be  IOS6 or later. Show route from current location to  YourCoordinate  in  iOS6 -( void ) showMapRouteFromCurrentLocation { CLLocationCoordinate2D currentUserCoordinate = YourCoordinate ; //currentUserCoordinate.latitude= +53.509980; //currentUserCoordinate.longitude = -0.133700; MKPlacemark * place = [[ MKPlacemark alloc ] initWithCoordinate : currentUserCoordinate addressDictionary : nil ]; MKMapItem * mapItem = [[ MKMapItem alloc ] initWithPlacemark : place ]; NSDictionary * routeOption = [[ NSDictionary alloc ] initWithObjectsAndKeys : MKLaunchOptionsDirectionsModeDriving , MKLaunchOptionsDirectionsModeKey , nil ]; [ mapItem openInMapsWithLaunchOptions : routeOption ]; } Follow this link link  http://stackoverflow.com/questions/13742305/to-show-the-route-between-mutliple-points-in-i

iOS SDK: Open other app from our app

Image
1. Open iPhone application from our app NOTE-> TEST in Device. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"itms-apps://YourApplicationLink"]]; Example ->  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@" https://itunes.apple.com/us/app/whats-your-bmi/id595331418?ls=1&mt=8 "]]; 2. Submit review for any application  [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID&mt=8"]]; Example ->  [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @" http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=595331418&mt=8 "]]; 3.Open our own application You have to create two apps, one app that sends data, and another app that receives that data. Together, the

Cocoa Interviews Questions and Answers

Image
1. Cocoa  Cocoa is an application environment for both the Mac OS X operating system and iOS.  It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment. Carbon is an alternative environment in Mac OS X, but it is a compatibility framework with procedural programmatic interfaces intended to support existing Mac OS X code bases. 2.       Frameworks that make Cocoa. ·         Appkit (Application Kit) ·         Foundation 3.       Objective-C. Objective-C is a very dynamic language. Its dynamism frees a program from compile-time and link-time constraints and shifts much of the responsibility for symbol resolution to runtime, when the user is in control. Objective-C is more dynamic than other programming languages because its dynamism springs from three sources: ·           Dynamic typing—determining the class of an object at runtime ·           Dynamic binding—determining the method to invoke at run