Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
with Swift
Make swiftly iOS development
About Me
Doncho Minkov
Senior Technical Trainer
@ Telerik Software Academy
Contestant in the Informatics
competitions
Experience with Web and Mobile
apps
Proficient with JavaScript and .NET
Email: doncho.minkov [at]
telerik.com
Blog: http://minkov.it
Table of Contents
Swift overview
Language syntax and specifics
Swift Overview
What and Why?
Swift Overview
Swift Overview
Swift Experiment
Techniques
.You
can primes.swift
also execute code from a
swift file:
Going to the
Playground
Live Demo
Swift syntax:
Variables and contants
Control structures
If-else, loops, switch
Data structures
Arrays, dictionaries, sets
OOP
Protocols, extensions, inheritance
Using var
var count :Int = 15
count++ //this is Ok
var count = 15
Defining Functions in
Swift
Functions in Swift have the following
syntax:
Function
returning
void:
func
printMessage(message:
String)
{
println(String(format: "Message: %@", message))
}
Function returning integer:
func sum(x: Int, y: Int) -> Int {
return x + y
}
Functions in Swift
Live Demo
Control Flow
Structures:
if-else and switch
switch
switch language {
case "Objective-C",
"Swift":
println("iOS")
case "Java":
println("Android")
case "C#":
println("Windows Phone")
default:
println("Another
platform")
}
Control Flow
Structures: Loops
while loop
while condition {
//run code
}
Swift Data
Structures
Mutable arrays:
Arrays and
Dictionaries
Live Demo
Classes and
Structures
Introducing
the OOP principles in Swift
Swift Classes
Creating Simple
Classes
Live Demo
Protocols in Swift
Protocols in Swift
Live Demo
UIKit Animations
UIKit Animations
UIKit Animations:
Animation Blocks
UIKit Animations
Live Demo
?
?
?
,
SEO -
,
, HTML, CSS, JavaScript, Photoshop
free C# book, C#, Java, C#
" "
" cloud "
Questions?
http://academy.teler