Getting Started with iClient for iOS

Feedback


 

Development Environment Preparation

Create a New Project

  1. In Xcode, select "Create a new Xcode project", then choose your project template and click "Next", as shown below, in this sample we choose Tabbed Application.

  1. Set the project Name, Organization and Company, then indicate your device, as shown below, in this sample we choose iPhone and click "Next".

  1. Save the project to the specified directory, notice whether the settings need git trusteeship, then the project is created.

Add Dependent Libraries

Code Implementations

The environment construction is complete, then open the FirstViewController.h file and add the following code:

#import "RMMapView.h"

@interface FirstViewController : UIViewController{
RMMapView *mapView;
}

    @property (nonatomic, retain) RMMapView *mapView;

Open the FirstViewController.m file and add the following code:

    @synthesize mapView;
    - (void)loadView {
    CGRect bounds = [[UIScreen mainScreen] bounds];
    [self setMapView:[[RMMapView alloc] initWithFrame:CGRectMake(0.0, 0.0, bounds.size.width, bounds.size.height)] ];
    self.view = mapView;
    // Your own code
}

Compiling and Running

Select your simulator and click Run, say "Hello" to your Map.