IOS Session

13
Use this title slide only with an image IOS Rashmi Karan Anshul Gupta Gaurav Chauhan Inter nal

description

IOS programming basics,ios,xcode

Transcript of IOS Session

Page 1: IOS Session

Use this title slide only with an image

IOSRashmi KaranAnshul GuptaGaurav Chauhan Internal

Page 2: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 2Internal

Agenda

iOS Basic Development Tools iOS Simulator Xcode Demo Framework Language App Distribution Developer Certificate & Provisioning Profile

Page 3: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 3Internal

iOS BASIC

iOS is the operating system (OS) used by iPhones, iPads, and iPod Touches.

iOS Development is the process of creating software for equipment that runs iOS.

Page 4: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 4Internal

Development Tools

Apple provides two major development tools for use in iOS development. XCODE: Xcode is an integrated development environment (IDE). Xcode includes-

Tools to help you create and modify code Tools to help you organize and manage your project files Tools to compile and debug your project Tools to help you work with your iOS devices

iOS Simulator: The iOS Simulator allows you to test a specially compiled version of your project under Mac OS without needing an iOS device.

Page 5: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 5Internal

iOS Simulator: Advantages

iOS Simulator allows developers to easily test code under different versions of iOS. Exact versions of iOS available for simulation may vary depending on the version of the iOS SDK that you are using.

Downgrading real-world devices to earlier versions of the operating system is not supported by Apple. While in iOS simulator it is possible to downgrade an iOS version for testing.

iOS simulator allows you to easily see how your project will look on different devices (iPhone or iPad).

Page 6: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 6Internal

iOS Simulator: Disadvantages

The simulated device screen size on your Mac can be significantly different from the size of a real-world device’s screen. This can give you a false impression of what your interface will look like to your users

The iOS Simulator does a very good job of emulating an iOS device. However, there are occasional bugs where the simulator does not perform in the same way that devices do.

Interacting with a device’s touch screen is a very different experience than using a computer mouse to interact with the simulator’s screen. You won’t have a good feel for your interface until you’ve experienced it on a device.

Memory issue or Application crashing issue.

Page 7: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 7Internal

XCODE

XCODE DEMO

Page 8: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 8Internal

Framework language: Objective-c

.h and .m Files

By default, Xcode creates two files you when you create a class. The first file is a .h file. The .h file is a header file. In this file will be a short

summary of the class, listing its name, public properties, public methods, and its parent class. If other classes need to interact with objects from your class, they will import this .h file so that they can easily learn what your class’ public properties and methods are.

The second file is a .m file. The .m file is your implementation file. In this file you will put the code for any methods that your class implements.

Page 9: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 9Internal

A sample .h file

A sample .h file

Page 10: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 10Internal

A sample .m file

A sample .m file

Page 11: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 11Internal

App Distribution

There are four ways to distribute iOS Applications: The Apple App store. This method gives developers easy access to users

worldwide. Each app must pass Apple’s review process in order to be accepted by the App Store. Serious developers should keep Apple’s review guidelines in mind through every stage of the development process.

Ad Hoc Distribution. This method allows you to distribute test versions of your apps to up to 100 users without using the Apple App Store. You must know the Unique Device ID (UDID) of the devices on which your apps will run. Most developers are limited to 100 ad hoc devices per year.

Enterprise Distribution. Large companies can get permission to distribute their apps internally without going through the app store. This distribution is only for devices owned or controlled by the company. This distribution method cannot be used unless Apple has verified a company meets Apple’s requirements.

Distributing apps to jail-broken phones. This method of app distribution is not supported by Apple

Page 12: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 12Internal

Developer certificates & Provisioning profile

In order to install apps on a device, you will need Developer Certificates & Provisioning Profiles.

Developer Certificates identify a developer as someone who is authorized by Apple to create software that can be installed on iOS devices.

Provisioning Profiles contain information about: What kind of distribution the profile allows: Debugging, Ad Hoc Distribution, App

Store Release, or Enterprise Distribution The bundle ID of your app Which devices are allowed to run your app (Debugging and Ad Hoc only) Which Developer Certificates are allowed to use that provisioning profile How long the provisioning profile is valid

Developer Certificates need to be installed on the Mac on which you are running Xcode. Xcode also needs your Provisioning Profiles in order to sign your products. Provisioning Profiles also need to be installed on your test devices in order for them to run your your signed apps.

Page 13: IOS Session

© 2014 SAP SE or an SAP affiliate company. All rights reserved.

Thank you