次の方法で共有


Part 4 of 5: Introduction to Consuming Azure Mobile Services from iOS


This post is about building the iOS Application using Xcode

001

  1. You'll need to be running Mac OS along with Xcode to create this iOS application.
  2. The programming language will be Objective-C .
  3. We will also download a library to help with the JSON parsing

Previous Posts

Part 1 of 5: Introduction to Consuming Azure Mobile Services from iOS https://blogs.msdn.com/b/brunoterkaly/archive/2012/09/26/part-1-of-5-introduction-to-consuming-azure-mobile-services-from-ios.aspx
Part 2 of 5: Introduction to Consuming Azure Mobile Services from iOS https://blogs.msdn.com/b/brunoterkaly/archive/2012/09/26/part-2-of-5-introduction-to-consuming-azure-mobile-services-from-ios.aspx
Part 3 of 5: Introduction to Consuming Azure Mobile Services from iOS https://blogs.msdn.com/b/brunoterkaly/archive/2012/09/26/part-3-of-5-introduction-to-consuming-azure-mobile-services-from-ios.aspx
Part 4 of 5: Introduction to Consuming Azure Mobile Services from iOS https://blogs.msdn.com/b/brunoterkaly/archive/2012/09/26/part-4-of-5-introduction-to-consuming-azure-mobile-services-from-ios.aspx
Part 5 of 5: Introduction to Consuming Azure Mobile Services from iOS https://blogs.msdn.com/b/brunoterkaly/archive/2012/09/26/part-5-of-5-introduction-to-consuming-azure-mobile-services-from-ios.aspx
Source Code MobileServicesClient
Download a Free Trial https://www.microsoft.com/click/services/Redirect2.ashx?CR_CC=200114759

Xcode is the IDE used to create iOS Apps

002

  1. The download link is here:

Downloading JSON Kit

003

  1. The JSON toolkit dramatically simplifies your Objective-C code.
  2. This free kit saves you the trouble of parsing JSON formatted data.
  3. We will download this kit and leverage a couple of files.
  4. The link.
  5. There are two key files:
    • JKSONKit.h
    • JKSONKit.m
  6. The two files above will be added to our iOS project.

Starting Xcode, Creating a project

004

  1. The first step is to create a project.
  2. Start Xcode and choose the following menu selections, File / New / New Project.
  3. The next screen will allow you to select the type of project you would like for your iPhone.
  4. We will select a Navigation-based Application.

Creating a Navigation-based Application

005

  1. We are choosing a Navigation-based Application because it makes it easy to use the TableView control.
  2. The TableView control is what will display our ToDo data, as shown previously.
  3. You can think of the table view control being similar to a grid control in other environments.
  4. The TableView control is used by iOS developers because it has a lot of powerful, built-in capabilities (graphics, sorting, master/detail, etc).
    • It allows you to display columnar data easily and efficiently.

Project Name

006

  1. You can name your project anything you want.

The project files have been generated

007

  1. We will need to do a couple of things at this point:
    • Add the JSONKit files
    • Modify RootViewController.h and RootViewController.m
  2. We would get this done in the final post (Part 5)

Simply click Finish

008

  1. We can accept the defaults indicated above.

Verifying correctness

009

  1. Go to the PRODUCT menu and choose BUILD.
  2. In the isn't enough and the

You will need a trial account for Windows Azure for these posts to make sense

010

  1. Please sign up for it here:

Next post is the final post, part 5

In the final poster will complete our iOS phone application. A bunch of Objective-C code will be presented. We would download the JSON kit to help with the parsing of the JSON data.