SlideShare uma empresa Scribd logo
1 de 18
Baixar para ler offline
𝓃
Github Playground
http://ppt.cc/ktbTe
Github
Social
e.g. https://www.github.com/gradyzhuo
e.g. https://www.facebook.com/gradyzhuo
iOS 4
Flingy, Swift 1
Flingy on AppStore(U.S. Only)
UI
!
iOS der! 😜
Grady Zhuo
ˇ ˋ ˇ
func () ->
•Swift Xcode
– Xcode
func () -> {
…
}
Xcode 7.0 iOS 7.0
• i.g. Xcode 6.4 Xcode 7.0
• Swift
•
func Xcode () -> {
}
error convert convert …
PS. 100 Error …
func SwiftSyntaxUpgrade() -> {
}
• Swift
iBooks Documentation
func () -> {
}
• Struct Apple Pointer Unsafe
– UnsafePointer
– UnsafeMutablePointer
– UnsafeBufferPointer
– UnsafeMutableBufferPointer
• Playground
– C C Array Swift C Array
–NSInteger index[4] = {0, 1, 2, 3};
–printf("%ld, %ld, %ld, %ldn", index[0], index[1], index[2], index[3]);
func Pointer () -> {
}
…
…
Swift
• Swift Open Source Swift 1.2 Swift
Cocoa Foundation
– NSSet -> Set<T>
– @try @catch -> do try catch
– NSError -> ErrorType (protocol)
• OpenSource Syntax…
• Apple Swift Blog Swift2.0 in Swift Blog by Apple Inc.
# In addition to new features, the big news is that Apple
will be making Swift open source later this year.
let OpenSource = Swift(syntaxRate : .Slow )
• Apple Swift
– Swift. A modern programming language that is safe , fast, and interactive.
• Code,
– Optional( ) nil
– if {}
– Switch case
– Pointer ( )
func Objective-C () -> Bool {
return true
}
• iOS / OSX
•
• Server
• Linux
• ● ● ●
func () -> AnyObject? {
}
Class, Struct and Enum
Q & A

Mais conteúdo relacionado

Destaque

再接再勵學 Swift 程式設計
再接再勵學 Swift 程式設計再接再勵學 Swift 程式設計
再接再勵學 Swift 程式設計政斌 楊
 
IAP auto renewable in practice
IAP auto renewable  in practiceIAP auto renewable  in practice
IAP auto renewable in practiceHokila Jan
 
App 產品製作心得 - 我的 App 創業之路
App 產品製作心得 - 我的 App 創業之路App 產品製作心得 - 我的 App 創業之路
App 產品製作心得 - 我的 App 創業之路Nokimi Lai
 
資料經濟:開放資料的下一步 黃彥男博士
資料經濟:開放資料的下一步 黃彥男博士資料經濟:開放資料的下一步 黃彥男博士
資料經濟:開放資料的下一步 黃彥男博士Taoyuan City Government
 
跨平台開發從測試到架構
跨平台開發從測試到架構跨平台開發從測試到架構
跨平台開發從測試到架構Chris Jeng
 
Mozilla Webmaker: Intro
Mozilla Webmaker: IntroMozilla Webmaker: Intro
Mozilla Webmaker: IntroIrvin Chen
 
How I learn APP (2015)
How I learn APP (2015)How I learn APP (2015)
How I learn APP (2015)Ryan Chung
 
你的程式開發初體驗 (以Swift為例)
你的程式開發初體驗 (以Swift為例)你的程式開發初體驗 (以Swift為例)
你的程式開發初體驗 (以Swift為例)彼得潘 Pan
 
Lecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-CLecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-CMaksym Davydov
 
Hello from mark・馬克說哈囉
Hello from mark・馬克說哈囉Hello from mark・馬克說哈囉
Hello from mark・馬克說哈囉YI Fei Tseng
 
4G互動新未來 !
4G互動新未來 !4G互動新未來 !
4G互動新未來 !Becker Lai
 
翻轉吧校園_恆毅校園新媒體
翻轉吧校園_恆毅校園新媒體 翻轉吧校園_恆毅校園新媒體
翻轉吧校園_恆毅校園新媒體 Becker Lai
 
誠品大講堂社群互動直播
誠品大講堂社群互動直播誠品大講堂社群互動直播
誠品大講堂社群互動直播Becker Lai
 
新思維 新商業 新價值
新思維  新商業  新價值新思維  新商業  新價值
新思維 新商業 新價值Becker Lai
 
如何變成iOS App開發魔法師
如何變成iOS App開發魔法師如何變成iOS App開發魔法師
如何變成iOS App開發魔法師彼得潘 Pan
 
移動影音解決方案
移動影音解決方案移動影音解決方案
移動影音解決方案Becker Lai
 
千里之行,始於足下:動手寫自己的App
千里之行,始於足下:動手寫自己的App千里之行,始於足下:動手寫自己的App
千里之行,始於足下:動手寫自己的AppSmallr Huang
 
You are not my type / 你不是我的菜
You are not my type / 你不是我的菜You are not my type / 你不是我的菜
You are not my type / 你不是我的菜YI Fei Tseng
 
Etu Recommender 群體智慧 想像無限
Etu Recommender 群體智慧 想像無限Etu Recommender 群體智慧 想像無限
Etu Recommender 群體智慧 想像無限Judy Wu
 

Destaque (20)

再接再勵學 Swift 程式設計
再接再勵學 Swift 程式設計再接再勵學 Swift 程式設計
再接再勵學 Swift 程式設計
 
IAP auto renewable in practice
IAP auto renewable  in practiceIAP auto renewable  in practice
IAP auto renewable in practice
 
App 產品製作心得 - 我的 App 創業之路
App 產品製作心得 - 我的 App 創業之路App 產品製作心得 - 我的 App 創業之路
App 產品製作心得 - 我的 App 創業之路
 
資料經濟:開放資料的下一步 黃彥男博士
資料經濟:開放資料的下一步 黃彥男博士資料經濟:開放資料的下一步 黃彥男博士
資料經濟:開放資料的下一步 黃彥男博士
 
跨平台開發從測試到架構
跨平台開發從測試到架構跨平台開發從測試到架構
跨平台開發從測試到架構
 
Mozilla Webmaker: Intro
Mozilla Webmaker: IntroMozilla Webmaker: Intro
Mozilla Webmaker: Intro
 
How I learn APP (2015)
How I learn APP (2015)How I learn APP (2015)
How I learn APP (2015)
 
你的程式開發初體驗 (以Swift為例)
你的程式開發初體驗 (以Swift為例)你的程式開發初體驗 (以Swift為例)
你的程式開發初體驗 (以Swift為例)
 
Lecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-CLecture 06. iOS Programming. Основи Objective-C
Lecture 06. iOS Programming. Основи Objective-C
 
Hello from mark・馬克說哈囉
Hello from mark・馬克說哈囉Hello from mark・馬克說哈囉
Hello from mark・馬克說哈囉
 
4G互動新未來 !
4G互動新未來 !4G互動新未來 !
4G互動新未來 !
 
翻轉吧校園_恆毅校園新媒體
翻轉吧校園_恆毅校園新媒體 翻轉吧校園_恆毅校園新媒體
翻轉吧校園_恆毅校園新媒體
 
誠品大講堂社群互動直播
誠品大講堂社群互動直播誠品大講堂社群互動直播
誠品大講堂社群互動直播
 
台灣新創團隊中國經驗談:人工智能視頻廣告為快速變現的創新模式
台灣新創團隊中國經驗談:人工智能視頻廣告為快速變現的創新模式台灣新創團隊中國經驗談:人工智能視頻廣告為快速變現的創新模式
台灣新創團隊中國經驗談:人工智能視頻廣告為快速變現的創新模式
 
新思維 新商業 新價值
新思維  新商業  新價值新思維  新商業  新價值
新思維 新商業 新價值
 
如何變成iOS App開發魔法師
如何變成iOS App開發魔法師如何變成iOS App開發魔法師
如何變成iOS App開發魔法師
 
移動影音解決方案
移動影音解決方案移動影音解決方案
移動影音解決方案
 
千里之行,始於足下:動手寫自己的App
千里之行,始於足下:動手寫自己的App千里之行,始於足下:動手寫自己的App
千里之行,始於足下:動手寫自己的App
 
You are not my type / 你不是我的菜
You are not my type / 你不是我的菜You are not my type / 你不是我的菜
You are not my type / 你不是我的菜
 
Etu Recommender 群體智慧 想像無限
Etu Recommender 群體智慧 想像無限Etu Recommender 群體智慧 想像無限
Etu Recommender 群體智慧 想像無限
 

Último

办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
cpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptcpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptrcbcrtm
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Software Coding for software engineering
Software Coding for software engineeringSoftware Coding for software engineering
Software Coding for software engineeringssuserb3a23b
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfkalichargn70th171
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 

Último (20)

办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
cpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.pptcpct NetworkING BASICS AND NETWORK TOOL.ppt
cpct NetworkING BASICS AND NETWORK TOOL.ppt
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Software Coding for software engineering
Software Coding for software engineeringSoftware Coding for software engineering
Software Coding for software engineering
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 

邂逅 Swift , 你需知道的 n 件事