Introduction to iOS
iOS is Apple’s mobile operating system developed originally for the iPhone,and later deployed on the iPod Touch and iPad as well. It is derived from Mac OS X, with which it shares the Darwin foundation, and is therefore
a Unix-like operating system, by nature. In iOS, there are four abstraction layers: the Core OS layer, the Core Services layer, the Media layer, and the Cocoa Touch layer.
iOS is the operating system at the heart of iPhone, iPod touch, and iPad devices.The iOS platform was built using the knowledge that went into the creation of Mac OS X,and many of the tools and technologies used for development
on the platform have their roots in Mac OS X as well. Despite its similarities to Mac OS X, iOS does not require experience developing Mac OS X applications.
The iOS Software Development Kit (SDK) provides everything you need to get started creating iOS applications.The iPhone SDK contains the code, information, and tools you need to develop, test, run, debug and tune applications
for iOS. The Xcode tools provide the basic editing, compilation and debugging environment for your code. Xcode also provides the launching point for testing your applications on an iOS device, and in iPhone Simulator
a platform that mimics the basic iOS environment but runs on your local Macintosh computer.
iOS comprises the operating system and technologies that you use to run applications natively on devices, such as iPad, iPhone and iPod touch. Although it shares a common heritage and many underlying technologies with Mac
OS X, iOS was designed to meet 'the needs of a mobile environment, where users needs are slightly diﬀerent. If you have previously developed applications for Mac OS X, you will ﬁnd many familiar technologies,but you
will also ﬁnd technologies that are available only on iOS, such as the Multi-Touch interface and accelerometer support.
Introduction to Swift
Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, and Linux. Swift is designed to work with Apple's Cocoa and Cocoa Touch frameworks and the
large body of extant Objective-C (ObjC) code written for Apple products.
Swift is an alternative to the Objective-C language that employs modern programming-language theory concepts and strives to present a simpler syntax. During its introduction, it was described simply as "Objective-C without
Swift was introduced at Apple's 2014 Worldwide Developers Conference (WWDC).It underwent an upgrade to version 1.2 during 2014 and a more major upgrade to Swift 2 at WWDC 2015. Initially a proprietary language, version
2.2 was made open-source software under the Apache License 2.0 on December 3, 2015, for Apple's platforms and Linux.
WHY SWIFT IS BETTER THAN OBJECTIVE-C?
Swift is better than objective-c for the following reasons:
- Code length in swift is comparatively smaller than as of Objective-C.
- Easy to maintain, resembles English Language.
- Object Oriented and Functional.
- More simplified as it doesn't need instance variable.
- Less execution time as unchanged files aren't recompiled.