0% found this document useful (0 votes)
64 views20 pages

Sri Ios1

The document discusses an internship report submitted by Srideeksha G on an internship focused on the iPhone operating system (iOS). It includes sections on learning objectives, an introduction to the Swift programming language used for iOS development, iOS keywords and data types, Xcode for Swift development, user interface design, frameworks, storage options, Core Data, and a conclusion. It also includes certificates, acknowledgements, an abstract, index, and a weekly overview of internship activities covering topics like arrays, loops, Swift basics, Xcode, user interface design, table views, and frameworks.

Uploaded by

Laya Gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views20 pages

Sri Ios1

The document discusses an internship report submitted by Srideeksha G on an internship focused on the iPhone operating system (iOS). It includes sections on learning objectives, an introduction to the Swift programming language used for iOS development, iOS keywords and data types, Xcode for Swift development, user interface design, frameworks, storage options, Core Data, and a conclusion. It also includes certificates, acknowledgements, an abstract, index, and a weekly overview of internship activities covering topics like arrays, loops, Swift basics, Xcode, user interface design, table views, and frameworks.

Uploaded by

Laya Gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

INTERNSHIP-IPHONE OPERATING SYSTEM

VISVESVARAYA TECHNOLOGY UNIVERSITY


“JNANA SANGAMA “ BELAGAVI-590010

INTERSHIP REPORT
IOS-IPHONE OPERATING SYSTEM
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING
SUBMITTED BY
SRIDEEKSHA G
4AL21IS055

UNDER THE GUIDENCE OF


MR.VENKATEST BHAT
DEPARTMENT OF COMPUTER
SCIENCE AND ENGINEERING

1
INTERNSHIP-IPHONE OPERATING SYSTEM
CERTIFICATE
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING

THIS IS TO CERTIFY THAT FOLLOWING


STUDENT SRIDEEKSHA G HAS SUBMITTED
INTERNSHIP REPORT ON “IOS-IPHONE
OPERATING SYSTEM” FOR 3RD SEM B.E. IN
INFORMATION SCIENCE AND ENGINEERING
DURING ACADEMIC YEAR 2022-23. THE
INTERSHIP HAS BEEN APPROVED AS IT
SATISFIES THE ACADEMIC REQUIREMENTS
IN RESPECT OF INTERSHIP WORK
PRESCRIBED FOR THE BACHELOR OF
ENGINEERING DEGREE

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

5 INTRODUCTION & HISTORY OF SWIFT


PROGRAMMING LANGUAGE

6 KEYWORDS,DATA TYPES

7 XCODE IN SWIFT

8 USER INTERFACE DESIGN

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

TUESDAY 18-10-2022 ARRAYS,LOOPS,BASICS OF


SWIFT
WEDNESDAY 19-10-2022 PROGRAMS ON SWIFT

THURSDAY 20-10-2022 PROGRAMS ON SWIFT & ITS


LOGIC
FRIDAY 21-10-2022 USER INTERFACE
DESIGN,XCODE
SATURDAY 22-10-2022 COUNTER IN XCODE,DESIGN IN
UI XCODE
THURSDAY 27-10-2022 PROGRAMS,TABLE VIEW

FRIDAY 28-10-2022 COUNTER VIEW,TABLE VIEW

SATURDAY 29-10-2022 FRAME WORKS ,STORAGES,


CORE DATA

6
INTERNSHIP-IPHONE OPERATING SYSTEM

INTRODUCTION TO SWIFT PROGRAMMING LANGUAGE:-


Swift is a general purpose, multi-paradigm, compiled programming
language for
developing IoS ,tv’s and watch’s applications. It is developed by Apple
Inc. It is
powerful and intuitive language which is easy to learn. Swift code is
safe, precise
and runs very fast.
Swift follows Objective-C runtime library which allows C, Objective-C,
C++ and Swift
code to run within one program. Swift is built with open source LLVM
compiler and
included in X code since version 6.
HISTORY OF SWIFT LANGUAGE:-
Swift was introduced in 2014 at Apple's Worldwide Developers
Conference.
The development of Swift was started in 2010 by Chris lattern with
other
programmers i.e. Doug Gregor, John McCall, Ted kremenek, and Joe
Groff at
Apple. The basic idea of Swift was taken from Objective-C, Rust,
Haskell, Ruby,
Python, C#, CLU, and many other programming languages.
Swift first version was 1.0 which undergone a major upgrade to Swift 2
at WWDC

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”

Hello World Program in Swift:-

Step 1: Open XCode in your system.

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.

Step 6: Now open main.swift file in the project navigator.

Step 7: Enter the following code in the main.swift file.


 Swift

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.

TO DEVELOP A APP USING XCODE IN IOS:-


Prepare your development environment

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.

What is Xcode for Macbook?


Xcode includes everything developers need to create great applications
for Mac, iPhone, iPad, Apple TV, and Apple Watch. Xcode provides
developers a unified workflow for user interface design, coding, testing,
and debugging. The Xcode IDE combined with the Swift programming
language make developing apps easy and fun.

USER INTERFACE DESIGN IN IOS:-


Scott Forstall was the lead iOS UI designer
Interface. The iOS user interface is based upon direct manipulation,
using multi-touch gestures such as swipe, tap, pinch, and reverse pinch.
Interface control elements include sliders, switches, and buttons.
14
INTERNSHIP-IPHONE OPERATING SYSTEM

What is UI UX design for iOS?

Mobile app design is simply the cumulation of every process and


component of the user interface (UI) and the user experience (UX)
features of the application. Therefore, it encompasses details in color
scheme, font, layout design, graphics, widgets, and buttons contained in
the app.

There are four prevalent types of user interface and each has a
range of advantages and disadvantages:
Command Line Interface.
 Menu-driven Interface.

 Graphical User Interface.

 Touchscreen Graphical User Interface.

One of the benefits of designing for iOS is that Apple controls


every device and screen size. Designers can apply designs to
various Apple templates and predict how their products look and
feel. On the other hand, Android is the Wild West regarding
devices and screen sizes.

HOW TO ADD A LABEL , BUTTONS,INCREMENT AND


DECREMENT :-
UILabel inherits the UIView class. It represents a class of views that
display one or more lines of read-only texts. In iOS applications,
15
INTERNSHIP-IPHONE OPERATING SYSTEM
the label is used in the association with UIControls to fulfill the
Application requirements.

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.

How to add buttons in Swift?


SwiftUI's button is similar to UIButton , except it's more flexible in
terms of what content it shows and it uses a closure for its action rather
than the old target/action system. To create a button with a string title
you would start with code like this: Button("Button title")
{ print("Button tapped!") }

How to add a button programmatically in Swift?


1. class MyViewController : UIViewController {
2. override func viewDidLoad() {
3. let myButton = UIButton(type: .system)
4. myButton. frame = CGRect(x: 20, y: 20, width: 100, height: 50)
5. myButton. setTitle("Tap me", for: .normal)
6. myButton. setTitle("Pressed + Hold", for: .highlighted)
7. myButton. ...
8. view.
What is increment and decrement operator in Swift?

The increment operator, denoted by ++ , increases a numeric value by 1,


and the decrement operator, denoted by -- , decreases a numeric value by

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

Where is Core Data stored?


The persistent store should be located in the AppData > Library >
Application Support directory. In this example you should see a SQLite
database with extension .

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

You might also like