Sri Ios1
Sri Ios1
INTERSHIP REPORT
IOS-IPHONE OPERATING SYSTEM
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
SUBMITTED BY
SRIDEEKSHA G
4AL21IS055
1
INTERNSHIP-IPHONE OPERATING SYSTEM
CERTIFICATE
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
HOD
DR .SUDHEER SHETTY
2
INTERNSHIP-IPHONE OPERATING SYSTEM
ACKNOWLEDGEMENT
First I would like to thank Mr .Venkatesh Bhat for
giving the opportunity to do an internship within the
organization. The team head Mr. Mahesh Nayak and
team for giving opportunity to do internship.
I am highly indebted to director Vivek Alva sir and
principal Dr. Peter Fernandis ,for facilities provided
to accomplish this internship.
I would that my Head of the department Sudheer
Shetty sir for his constructive criticism throught out
my internship.
I am extremely great full to my department staff
members and friends who helped me in successful
completion of this internship.
3
INTERNSHIP-IPHONE OPERATING SYSTEM
ABSTRACT
You will be an expert in making IOS applications by joining this IOS
development internship in Nashik. You can learn Swift, Core Data,
Networking, and iCloud under this training.We have designed the
syllabus of our internship according to the requirement of the software
industry in the market. We also allow our interns to work on live
projects under this training program.We give training on core pillars in
IOS development under this internship.We give training to our interns
on XCode and iOS SDK installation. By this, they can learn to create
basic IOS applications. You can learn to develop two types of
applications. It can be windows based and web-based applications .
There are probably quite a few reasons why the iPhone has become such
a success, and one could likely write a report solely about those reasons.
I will focus on one of them in this study, maybe one of the most
important reasons: the iPhone came with a revolutionizing user
interface. I have studied iOS applications and their user interface
components along with related research in order to try and find out what
exactly makes it so attractive and also to uncover any flaws I might
stumble across along the way. In order to answer this, and to gain a
better insight into the iOS, I have developed an iPhone application from
scratch covering all of the basic functionality usually found in any other
iPhone application. The results will show that most of it seems to relate
with Apple enforcing very strict rules and guidelines, along with
limitations placed on the developer and the process as a whole. This
strict process ends with Apple evaluators performing a review of the
finished product, using their guidelines as heuristics. These guidelines
will be proven to have scientific credibility, and the controlled
development process will be a key to defining the iOS success.
4
INTERNSHIP-IPHONE OPERATING SYSTEM
INDEX
SL.NO CONTENTS
1 CERTIFICATE
2 ACKNOWLEDGMENT
3 ABSTRACT
4 LEARNING OBJECTIVES
6 KEYWORDS,DATA TYPES
7 XCODE IN SWIFT
9 FRAME WORKS
10 STORAGES
11 CORE DATA
12 CONCLUSION
5
INTERNSHIP-IPHONE OPERATING SYSTEM
WEEKLY OVERVIEW OF INTERSHIP ACTIVITIES
DAY DATE NAME OF THE TOPICS
6
INTERNSHIP-IPHONE OPERATING SYSTEM
7
INTERNSHIP-IPHONE OPERATING SYSTEM
2015. Its upgraded version 2.2 was made open-source software under the
Apache
License 2.0 on December 3, 2015, for Apple& #39; s platforms and
Linux.
SYNTAX OF THE SWIFT PROGRAM-
1. /* This is a multi-line comment.
2. /* This is the second line. */ */
FOR EXAMPLE-
1. var myString = "Hello, World!"; print(myString)
IDENTIFIERS IN THE SWIFT:-
Identifiers are used to identify a variable, function, or any other user-
defined item.
Swift 4 identifiers start with an alphabet A to Z or a to z or an
underscore _ followed
by zero or more letters, underscores, and digits (0 to 9).
KEYWORDS IN SWIFT:-
The reserved keywords can't be used as constants or variables or
any other identifier
names. If you want to use them as identifiers, you will use them within
back ticks .
KEYWORDS USED IN STATEMENT:
break
case
continue
default
do else
8
INTERNSHIP-IPHONE OPERATING SYSTEM
fallthrough
for
if
in return
switch
where
while
DATA TYPES :-
Data types are the most important part of any programming
language. Just like other programming languages, in Swift also
the variables are used to store data and what type of data is going
to store in the variable is decided by their data types. As we know
that variables are nothing but a reserved memory to store data so
according to these data types operating system allocates memory
and stores only the specified type data in the allocated memory,
for example, the integer type variable can only store integer value
it can not store string value. Swift support six data types Int,
String, Float, Double, Bool, and Character.
1. Integer: In Swift, the integer is a data type that is used to
represent a whole number with no fraction, for example, “2”,
“56”, “3”, etc. Integer can be of 8, 16, 32, and 64.
Syntax:
var num : Int = 199
2. String: In Swift, the string is used to represent a sequence of
characters or textual data, for example, “GeeksforGeeks”. The
variable of string data type is defined using the String keyword.
Syntax:
var num : Int = 199
3. Float: In Swift, the float data type is used to represent decimal
numbers or we can say that float is used to represent 32-bit floating-
9
INTERNSHIP-IPHONE OPERATING SYSTEM
point numbers, for example, “3.23”, “0.89753”, etc. It stores data with
less precision. This data type represents up to 6 decimal places, so it is
generally used when the floating-point number is less.
Syntax:
var inputData : Float = 3.43
4. Double: Double data type is used to represent a number with
fractional components or we can say that double data type is a 64-bit
floating-point number, for example, “2.3345656”, “0.24354656”, etc.
Syntax:
var inputData : Double = 23.45788
5. Bool: In Swift, bool or boolean is used to represent logical entities.
This data type has only two values that is true or false. Here the
variable of boolean data type can be defined using the Bool keyword.
Syntax:
var inputData : Bool = true
6. Character: In Swift, the character is used to represent a single letter
or string literal. For example “G”, “E”, “K”, “S”, etc. A variable of
character data type can be defined using the Character keyword.
Syntax:
var inputData : Character = “G”
10
INTERNSHIP-IPHONE OPERATING SYSTEM
Step 2: Create a new XCode project.
Step 3: Select the command-line tool and then click on the Next button.
Step 4: Give a name to your project like here we give “helloworld” and
then click on next button.
11
INTERNSHIP-IPHONE OPERATING SYSTEM
Step 5: Select the project location and then click on the create button.
Now the project is created.
import Foundation
print("Hello, World!")
Step 8: Now press the Run button to run the main.swift file and you
will get the following output:
12
INTERNSHIP-IPHONE OPERATING SYSTEM
XCODE:-
Platform Focus: Visual Studio Code is a cross-platform tool, compatible
with Windows, macOS, and Linux, making it suitable for developers
working on different operating systems. Xcode is exclusively designed
for macOS, limiting its availability to Apple developers working on
macOS and iOS projects.
13
INTERNSHIP-IPHONE OPERATING SYSTEM
Xcode is Apple's integrated development environment (IDE) for all
Apple's platforms, and it's free for all Apple users. Xcode provides all
tools to create apps (design, develop, and publish) for all Apple's
platforms: iOS, iPadOS, tvOS, watchOS, and macOS.
1. Download Xcode
2. Launch Xcode and create a New Project
3. Get familiar with Xcode
4. Build and run your app using the built-in iOS Simulator app
that’s included in Xcode. The iOS Simulator is a great way to
see what your app will look like and you can interact with it
as if you were on a real device. You can simulate your app
on a variety of hardware types and iOS versions.
There are four prevalent types of user interface and each has a
range of advantages and disadvantages:
Command Line Interface.
Menu-driven Interface.
The following steps are used to add the label to the interface.
1. Search for the label in the Object library and drag the result to the
storyboard or create an object of UILabel class in the
ViewController class.
2. Configure the appearance of the label using the attribute inspector.
3. Set up auto-layout rules to define the size and position of the label
in your interface.
16
INTERNSHIP-IPHONE OPERATING SYSTEM
1. The increment operator is short-hand for a longer expression; a++ is
the same as a = a + 1 , and a-- is the same as a = a - 1 .
FRAMEWORK:-
Frameworks are self-contained, reusable chunks of code and
resources you can import into many apps. You can even share
them across iOS, tvOS, watchOS and macOS apps. When
combined with Swift's access control, frameworks help define
strong, testable interfaces between code modules.
What frameworks are used in iOS development?
Alamofire is a framework written in Swift. It is popularly used for iOS
app development. The framework is known to be AFNetworking' If you
intend to develop a Swift project, Alamofire can be the best choice
because it ensures that your core networking library is dependable with
your source code.
SwiftUI is Apple's brand new framework for building user interfaces for
iOS, tvOS, macOS, and watchOS. Apple introduced SwiftUI in 2019
and the framework has been evolving at a rapid pace ever since. Unlike
UIKit and AppKit, SwiftUI is a cross-platform framework.
6 types of frameworks
Web app framework. Developers use web app frameworks when
designing a website. ...
Mobile app framework. ...
Technology framework. ...
Enterprise architecture framework. ...
Database framework. ...
Testing framework.
STORAGES IN SWIFT :-
LOCAL STORAGE:-
17
INTERNSHIP-IPHONE OPERATING SYSTEM
Local storage is meant for retaining web app data locally using certain
frameworks, tools and methods distinctive to different platforms. For
iOS storage there are different methods to choose from. The choice,
however, depends upon what and how much data you want to store.
Local storage means the data that is stored inside the app. You do not
need an internet connection to create or read data from local storage. We
will create a simple iOS app in Swift UI that allows you to create, read,
update, and delete values in local storage.
SESSION STORAGE:-
Session storage allows you to store data in the browser depending on the
system memory and the data stored in the browser until the browser is
closed. In other words, closing the browser will clear all the data stored
in session storage.
Session storage is similar to cookies, but the data is only stored for the
current session. This means that the data will be deleted when the user
closes the browser. Session storage is useful for storing data that is
sensitive, such as login credentials. Cookies are the oldest and most
well-known mechanism.
CORE DATA:-
CoreData is the framework provided by Apple to save, track, filter, and
modify the data within the iOS applications. It is not the database, but it
uses SQLite as it's persistent store. It is used to manage the model layer
object in our application .Core Data is one of frameworks that is
provided for iOS to manage the mapping of your objects to a storage.
The first step in working with Core Data is to create a data model file.
Here you define the structure of your application's objects, including
their object types, properties, and relationships.
18
INTERNSHIP-IPHONE OPERATING SYSTEM
FUTURE SCOPE:-
Swift is fairly a very new language but it have gained popularity
very quickly and is also open source.
Developers are loving it after Swift 2.0 release .
Moreover Google,Fcaebook and Uber are considering Swift as
their main language for production. So, swift is not only being
considered for iOS apps.
CONCLUSION :-
By the above description we can understand the need of swift
language in future, so swift is the best future for application
software.This technology has a bright future scope because day by
day need od data would increase and security issues also .So,
19
INTERNSHIP-IPHONE OPERATING SYSTEM
major companies like Firefox, word press , you tube etc. are
adopting swift for safety purpose.
20