Skip to main content
iOS 
8i 
iOS is a mobile operating system 
developed by Apple Inc. and 
distributed exclusively for apple 
hardware. It is a operating system 
that powers many of the company 
iDevices.
iOS: Advantages and 
disadvantages 
+ Highest revenue for mobile OS 
+ Little fragmentation (just iPhone and iPad) 
+ Runs on high-end devices 
+ Big developer community and excellent 
support 
+ Many open-source libraries available 
- Strictly controlled by Apple 
- Development only possible in Mac OS 
- Objective C is the main programming 
language
Technology 
Application development in Objective C – a language 
that adds Smalltalk-style messaging to C 
Development done in Xcode on Mac OS devices 
Debugging and running on phone done also in Xcode
Apple developer program 
Apple developer account is free 
Registration process takes 3-5 days
iOS development 
1010 
1010 
Develop 
No cost 
1010 
1010 
Debug 
Potential cost 
Deploy 
Requires Developer 
Program 
Test 
Requires Developer 
Program
iOS debugging 
1010 
1010 
Develop 
1010 
1010 Simulator does not require 
a developer program 
1010 
1010 Device requires a Developer 
Debug 
Provisioning Profile – 99$/year
Objective C 
Objective-C is an object oriented language 
Follows ANSI C style coding with methods from Smalltalk 
Flexible because almost everything is done at runtime: 
•Dynamic Binding 
•Dynamic Typing 
•Dynamic Linking 
It is used for both iOS and Mac OS development 
Source files: .m, header files: .h 
Has protocols, which work like interfaces in Java they 
specify a number of methods a class must implement
Memory allocation 
Objects are created dynamically using alloc keyword 
Objects are automatically deallocated in latest Objective- 
C through automatic reference counting (ARC) 
ARC keeps an internal count of how many times an 
Object is 'needed' 
System makes sure that objects that are needed are not 
deleted, and when an object is not needed it is deleted
C++ vs. Objective-C 
C++ Objective C 
Adds OOP, metaprogramming 
and generic programming to C 
Only adds OOP to C 
Comes with a std library Has no standard library; is 
dependant on other libraries 
Has numerous uses Mostly used for application 
building 
Large and complex code for 
OOP 
Simpler way of handling 
classes and objects
Creating main screen 
Click on the storyboard 
Create a navigation controller from the 
storyboard designer by drag and drop
Delete default screen 
Delete the default Table View Controller and add your 
own View Controller by drag and drop 
Right click from the navigation controller to View 
Controller and choose root view controller 
relationship
Add items to screen 
Add items to screen by using drag and 
drop: label, button and text edit 
Attention! 
Disable “Use Autolayout” from 
View Controller properties if you 
want application to work in iOS 5 
and earlier
Create a class for the screen 
The class should subclass UiViewController
Connect your class to the 
storyboard 
Make the View Controller in the storyboard to be 
you class 
Open Assistant editor 
Drag and drop interface objects to you class h file to create connections
Run the application 
Go to project properties and set your storyboard as Main Storyboard 
Press run in simulator
Run the application on phone 
Open the organizer 
Log in with your 
developer id 
You need to be enroller 
in developer program 
Connect the phone to the 
computer 
Add the device to your 
provisioning portal
Thank You