Swift Development – List of Resources You Must Bookmark
Ever since the introduction of iOS, there is iOS development fever across the globe. Many iOS developers & companies are making fortunate out of it. By using Objective-C and Apple homebrew XCode SDK, there are more than 1 million apps in Appstore now! Apple didn’t stop there, they are going to push it to another level by introducing a new high level programming language – Swift. Objective-C without the baggage of C is how Craig Federighi described it during the conference.
Swift is designed to be fast, modern, safe and interactive. Even though it is a high level programming language, its speed is much more faster than Objective-C. You can mix it with Objective-C and C altogether in a project too (Not a good idea though!).
Honestly, I was pretty excited about Swift. I wanted to dive into iOS development, but as a web developer for half of my life, it isn’t easy for me to get into programming with low-level language. So, this announcement is actually quite an exciting news to me. I started to find resources about it and even started to learn how to use XCode. I decided to start from basic of Objective-C so I’ll know the differences. It was a painful process. Objective-C has been serving Apple well for 20+ years, and I must say, it is not a friendly language at all.
As a PHP developer, I found Objective-C is a beast, very steep learning curve and a lot of weird and repetitive coding. To cut it short, it’s indeed a low-level language, too low to my liking. My motive to learn the basic of Objective-C is to know the native solution first before moving on to high level. Just like how we start by learning Javascript first before moving on to jQuery.
Swift does a lot behind the scene to eliminate all those inconveniences and tedious practives of Objective-C. As a result of that, Objective-C codes are being simplified into shorter code and easier to understand. Take the following code illustrated during the conference as example:
Objective-C
if (myDelegate != nil) {
if ([myDelegate respondsToSelector: @selector(scrollViewDidScroll:)]) {
[myDelegate scrollViewDidScroll:myScrollView];
}
}
Swift
myDelegate?.scrollViewDidScroll?(myScrollView)
Variable assignment is almost the same with Javascript except they eliminate the needs of semicolon. Comparing to Objective-C, it’s just painful to write. Here is the declaration of String type variable.
Objective-C
NSString *myString = @"This is my string.";
Swift
var myString = "This is my string."
Are you getting excited yet? During the my own research and learning, I found a good collection of useful resources about Swift. If you started to learn it just like I do, this list will be very handy. But first of all, you need the SDK. Swift is only available in XCode 6 Beta which only available for those with Apple Developer account, but if you search around *ahem*, you will able to download it elsewhere.
Here you go, below is a list of resources, you will get written tutorials, video tutorials, references, sample codes and swift community. Drop me a commnet if you discovered something useful. Enjoy!
Introduction
- A Swift Tour by Apple. Download from iBook Swift programming language or PDF.
- An Absolute beginners guide to Swift by TeamTreeHouse
- A programmers view of apples new Swift language by Richard Byrne Reilly
- Swift is great but you should still know Objective-C first by Jon Friskics
- Swift – Learn Apple’s New Programming Language by Examples by Udemy
- Developing iOS8 apps using Swift – Create a Todo application by Shiva Narrthine
Tutorial Series #1
A simple and short tutorial created by Fábio Rocha.
Tutorial Series #2
A comprehensive Swift tutorial created by James Quave. This 6 parts tutorials focus on created iOS app. You will learn from basic to advanced techniques such as web API request, Parsing JSON, Table View, Async image loading & caching, interaction with multiple views and best practices.
- Hello World
- Making a web API request and parsing the JSON
- Some best practices using Protocols and Delegates
- Adding an interactive Table View
- Async image loading and caching
- Developing iOS 8 Apps Using Swift Part 6 – Interaction with multiple views
Tutorial Series #3
This tutorial will walk you through the creation of a geolocation based alarm app for travelers. The concept is simple: users create a new alarm by selecting both a geographic region and music item from their library. When the phone detects itself crossing the region boundary of an alarm (enter or exit) the relevant music plays.
Tutorial Series #4
We Heart Swift is a new website dedicated for Swift programming. They are going to be covering cool stuff they found.
- How to make a simple table view with iOS8 and Swift
- Swift Classes – Part 1
- Swift Classes – Part 2
- Swift Around – Simple tableview with a custom cell type
- Make awesome UI components iOS8 using Swift XCode 6
Video tutorials
Sample Code
Sometimes, the quickest way to pick up a language is to learn by sample. Here we have a list of Swift Applications that you can download and study it.
- FlappySwift – Code
- SwiftExample – Table views and web views demostrations
- Swift RSS – An RSS reader app written in Swift. About 100 lines of code and written within about an hour. Proved Swift is a good programming language
- Minimalistic Swift HTTP request agent for iOS and OS X
- HackerNews Reader iOS App
- Swift – Game of Life – Conway’s game of life written in Swift with SpriteKit
- SwiftNote – Simple note taking app with today widget and iCloud syncing.
- UIImageView – BetterFace Swift – A UIImageView extension to let the picture-cutting with faces showing better
- UICatalog: Creating and Customizing UIKit Controls in Swift – iOS Developer Library
- Adventure: Building a SpriteKit Game Using Swift – iOS Developer Library
- GestureRecognizers: Using standard UIGestureRecognizers – iOS Developer Library
- Lister: A Productivity App Built in Swift – iOS Developer Library
Quick References
- Swift Cheat Sheet and Quick Reference
- Swift Cheat Sheet by kpkp
- String Reference Guide for Swift
- Array Reference Guide for Swift
- Swift Cheat Sheet by Grant
- Swift Cheat Sheet
Swift Community
- Google+ Swift Community
- Github Swift Trending Repositories
- Stackoverflow Swift Language
- Reddit iOS Swift
- V2EX – In Mandarin Language
- SwiftChina – In Mandarin Language
- Swift China – In Mandarin Language
Swift Development – List of Resources You Must Bookmark的更多相关文章
- open source Swift, Objective-C and the next 20 years of development
Q&AApple's Craig Federighi talks open source Swift, Objective-C and the next 20 years of develop ...
- Awesome Swift
Awesome Swift https://github.com/matteocrippa/awesome-swift A collaborative list of awesome Swift re ...
- The Swift.org Blog welcome欢迎页note
The Swift.org Blog Welcomehtml, body {overflow-x: initial !important;}html { font-size: 14px; } body ...
- Swift is Open Source 博客note
Swift is Open Sourcehtml, body {overflow-x: initial !important;}html { font-size: 14px; } body { mar ...
- Swift搭建服务端
原文:Hello Server Side Swift 作者:Logan Wright 译者:CocoaChina--kmyhy(博客) 自从苹果官方发布了一个 Swift 的 Linux 开源版本之后 ...
- swift闭包 notes http://www.gittielabs.com
Swift Closureshtml, body {overflow-x: initial !important;}.CodeMirror { height: auto; } .CodeMirror- ...
- swift.org - About Swift 官网关于notes
About Swifthtml, body {overflow-x: initial !important;}html { font-size: 14px; } body { margin: 0px; ...
- cong
Directions: Study the following cartoon carefully and write an essay in which you should 1) descr ...
- 学习 Linux,101: 使用基本 SQL 命令
概述 在本教程中,将学习结构化查询语言 (SQL),包括: 使用基本 SQL 命令 执行基本数据操作 本教程将简要介绍您需要知道的与 LPI 102 考试相关的 SQL 概念. 回页首 数据库和 ...
随机推荐
- hive一些基本用法
1.hive中的数据库表的类型有两种,一种是managed,一种是external :managed表类型是指传入的数据放在hive默认的储存位置下,而external 表类型可以将数据 放在任意的 ...
- QuantLib 金融计算——基本组件之天数计算规则详解
目录 天数计算规则详解 定义 30 / 360 法 30/360 US 30/360 Bond Basis 30E/360 30E/360 ISDA Actual 法 Actual/Actual IC ...
- day2: python3.5学习——逻辑判断
1. 简单的用户名和密码输入 username = "Helen"password = "123abc" _username = input("use ...
- 利用Android Studio编写 Android上的c与c++程序
利用Android Studio编写 Android上的c与c++程序 (2017-05-22 19:01:20) 转载▼ 标签: android 分类: Android开发 原文链接: http:/ ...
- SVN版本库备份和恢复
1.版本库备份 1.1.svnadmin dump方式备份 此方法借助的是Subversion官网推荐的svnadmin dump备份方式,它的优点是比较灵活,既可以进行全量备份又可以进行增量备份,并 ...
- FZU_1894 志愿者选拔 【单调队列】
1 题面 FZU1894 2 分析 单调队列的典型引用 需要注意的是在用维护辅助队列的时候,$L$和$R$的初始化都是0时,队列第一个数就是$L$,最后一个数就是$R-1$. 3 AC代码 #incl ...
- 认识CSS3新增选择器和样式
前端之HTML5,CSS3(二) CSS3新增选择器和样式 CSS3新增选择器 结构伪类选择器 :first-child:选取父元素中的第一个子元素的指定选择器 :last-child:选取父元素中的 ...
- Mac系统升级至OS X Mavericks后Genymotion出现的问题及解决方法
Apple的系统升级终于免费了,可开心满满地升级到OS X Mavericks后,Android模拟器之王Genymotion罢工了.遇到两个问题:1. Unable to load VirtualB ...
- 【文档】四、Mysql Binlog事件含义详解
下面对binlog中事件做个简单说明: UNKNOWN_EVENT 这个事件类型应该永远不会出现.它从不会写入binlog中.如果binlog中的事件没法被识别成其他已知事件,他被当做UNKNOWN_ ...
- windows7用WMware安装Linux虚拟机详细步骤
一.安装环境 windows7操作系统物理机VMware Workstation 软件(可以在网上下载)CentOS6.5镜像文件(其他版本都大同小异,这里以CentOS6.5为例)Cnetos6.5 ...