New iPhone GIS Development Environment preparations

Source: Internet
Author: User

IPhone GISThis document describes how to prepare a development environment for beginners,IPad, iphoneRecently, it is highly sought after. Esri follows the trend and released the application and Development API for ios. If you want to try ios development, I hope the following content will benefit you! Sorry, ios requires ~ Patience ~!

First of all, let's start with a few concepts.IPad, iphoneAs you all know, their operating system is ios. Such an operating system is for small devices. For laptops and other computers, that is, mac computers, they have more powerful operating systems, including snowleopard ).

On snow leopard, we can write small programs that can run on ios systems. The Compiler IDE used is called XCODE. The language used to write ios programs is objective-C, which is developed by C language. Cocoa is a basic framework for ios program development. It contains many methods, controls, and so on. It can help us quickly build ios programs.

Application RequirementsIpad, iphone, Itouch): iOS 3.1.2 or above.

Development Environment:

Operating System: Intel kernel Macintosh Snow Leopard (OS X 10.6.2 or above)

SDK: ArcGIS API for iOS is written based on iOS 4.0.2. Therefore, the SDK of the development system must be based on iOS 3.2 or later.

Compiler: Xcode. The compiler is generally bundled with the SDK for download and installation.

ArcGIS API for iOS: You can download it for free and double-click it to install it.

Note that the path after successful installation is usually in/Users/yzx/resource library/SDKs/ArcGIS/iOS. sdk/usr/local/lib/libArcGIS.. The header file can also be found in this path.

Use Sample:

In http://www.arcgis.com/home/group.html? Owner = iOSDevelopmentTeam & title = ArcGIS % 20for % 20iOS % 20 Developer % 20Samples. Some useful examples can be downloaded, covering several important API application directions.

 
 
  1. Query Task Sample   
  2. Identify Task Sample   
  3. Geocoding Sample   
  4. Find Task Sample   
  5. Feature Layer Editing Sample   
  6. Custom Tiled Layer Sample 

After downloading and decompressing the package, you can run it directly in xcode. Generally, the following configurations are required due to system environment restrictions:

1. Add a dependency library for Target:/Users/yzx/resource library/SDKs/ArcGIS/iOS. sdk/usr/local/lib/libArcGIS.

2. Set project properties. build path: $ (HOME)/Library/SDKs/ArcGIS/ios. sdk/usr/local/lib

3. Set Project Properties and Add Build Flags "Other Linker Flags": '-all_load' and '-objc '.

4. Set project properties. Header file path: "User Header SearchPaths"

 
 
  1. (HOME)/Library/SDKs/ArcGIS/ios.sdk/usr/local/include/** 

After the settings are complete, build and run to run.

Use ArcGIS Template to create an ios program:

If ArcGIS API for iOS has been installed, You can see three templates of ArcGIS in The Wizard of creating a project in XCODE: navigation-based ArcGIS Mapping Application, Tab Bar ArcGIS Mapping Application, and View-based ArcGIS Mapping Application. The advantage of using a template to create a new project is that you no longer need to configure the project, which is very convenient. View-based templates may be the most used. The AGSMapView object has been loaded and a test layer has been set. After creating a project according to the template, you can run it directly and see the map on arcgisonline.

Note:

If a problem occurs during compilation Using iOS SDK 4.1, you can enter-D _ in the Other C Flags configured in the project __IPHONE_ OS _VERSION_MIN_REQUIRED = 030102.

Summary:IPhone GISThis article is helpful to you.Iphone and ipadFor more information, see edit recommendations.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.