精心收集并分类整理的Swift开发学习资源,包括Apple官方提供的示例代码和文档,以及github上的项目和国内外开发者的技术博客。欢迎提交pull-request一起维护。QQ交流群 32958950 申请请注明开发经验
Swift Objective-C C++ Objective-C++ C Metal Other
Switch branches/tags
Nothing to show
Clone or download
Lax MPRemoteCommandSample: Using MPRemoteCommandCenter respond to remote …
…control events: Version 1.0, 2016-10-27

First public release

This sample demonstrates how to use the MediaPlayer MPRemoteCommandCenter APIs to handle remote control events. Refer to this sample if you want to know how to respond to remote control events, customize your Control Center and Lock Screen controls, and support Siri commands related to remote control events.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
Latest commit c417eea Mar 14, 2018
Permalink
Failed to load latest commit information.
.scripts add update date Nov 19, 2017
AVCam AVCam: Version 7.1, 2017-06-06 Oct 16, 2017
AVCamBarcode AVCamBarcode: Version 3.0, 2017-09-19 Oct 16, 2017
AVCamPhotoFilter AVCamPhotoFilter: Version 3.0, 2017-09-19 Oct 16, 2017
AVCustomEdit AVCustomEdit: Version 3.0, 2017-08-17 Nov 19, 2017
AVFoundationExporter AVFoundationExporter: Version 3.0, 2016-09-13 Dec 24, 2016
AVFoundationQueuePlayer AVFoundationQueuePlayer: Version 2.0, 2016-09-13 Dec 24, 2016
AVFoundationSimplePlayer-iOS renamed: AVFoundationSimplePlayer -> AVFoundationSimplePlayer-iOS Nov 19, 2017
AVReaderWriter AVReaderWriter: Version 3.1, 2016-09-13 Dec 24, 2016
AccessibilityUIExamples AccessibilityUIExamples: Version 3.0, 2017-09-12 Nov 19, 2017
AdaptiveElements AdaptiveElements: Implementing Your Own Adaptive Design with UIKit: V… Mar 14, 2018
AdoptingMetalII Adopting Metal II: Designing and Implementing a Real-World Metal Rend… Mar 14, 2018
Adventure Adventure: Version 1.6, 2015-03-11 Mar 14, 2015
AppChat AppChat: Version 1.0, 2016-10-27 Nov 19, 2017
ApplicationShortcuts ApplicationShortcuts: Version 1.3, 2017-12-14 Dec 20, 2017
AudioInARKit Audio in ARKit: Version 2.1, 2018-03-08 Mar 14, 2018
AudioUnit AudioUnitV3Example: A Basic AudioUnit Extension and Host Implementati… Oct 16, 2017
AudioUnitV3Example AudioUnitV3Example: Version 3.0, 2017-06-06 Nov 20, 2017
Badger Badger: Version 1.0, 2016-09-13 Dec 24, 2016
CFHostSample CFHostSample: Version 3.0, 2017-03-14 Nov 20, 2017
CallJS CallJS: Version 1.1, 2011-07-05 Dec 28, 2017
CloudCaptions CloudCaptions: How integrate CloudKit into your application: Version … Feb 13, 2018
CoreDataBooks CoreDataBooks: Version 1.5, 2014-05-08 Feb 13, 2018
DemoBots DemoBots: Version 2.3, 2016-09-13 Oct 9, 2016
Flags Flags: A demonstration of automatic RTL support in Asset Catalogs and… Mar 14, 2018
Footprint Footprint: Version 2.1, 2016-09-28 Dec 24, 2016
ForceTouchCatalog ForceTouchCatalog: Version 1.2, 2016-09-28 Dec 24, 2016
Fox2SceneKitWWDC2017samplecode Fox 2: SceneKit WWDC 2017 sample code: Version 1.2, 2018-02-08 Mar 14, 2018
HomeKitCatalog HomeKitCatalog: Version 2.2, 2016-09-13 Dec 24, 2016
IceCreamBuilder IceCreamBuilder: Version 1.0, 2016-09-13 Dec 24, 2016
IntentHandling IntentHandling: Version 1.0, 2016-09-13 Dec 24, 2016
InteractiveContent Interactive Content with ARKit: Version 1.2, 2018-02-15 Mar 14, 2018
KeychainTouchID KeychainTouchID: Using Touch ID with Keychain and LocalAuthentication… Feb 13, 2018
Lister Lister: Version 3.4, 2016-09-28 Oct 9, 2016
LocateMe LocateMe: Version 4.0, 2014-09-17 Feb 13, 2018
MPRemoteCommandSample MPRemoteCommandSample: Using MPRemoteCommandCenter respond to remote … Mar 14, 2018
MPSCNNHelloWorld MPSCNNHelloWorld: Version 1.1, 2016-11-17 Dec 24, 2016
MPSMatrixMultiplication MPSMatrixMultiplication: Version 1.0, 2016-09-13 Dec 24, 2016
MetalImageFilters MetalImageFilters: Version 1.0, 2016-09-13 Dec 24, 2016
MotionGraphs MotionGraphs: Version 2.0, 2017-02-02 Dec 27, 2017
PageControl PageControl: Version 7.0, 2017-09-21 Oct 16, 2017
Pathfinder Pathfinder: Version 1.1, 2016-09-28 Dec 24, 2016
PhotoPicker PhotoPicker: Using UIImagePickerController to Select Pictures and Tak… Jan 15, 2018
PhotoProgress PhotoProgress Jun 13, 2015
Photos Photos: Version 4.3, 2017-06-06 Oct 16, 2017
PotLoc PotLoc: Version 1.1, 2016-03-21 May 15, 2016
PrintPhoto PrintPhoto: Version 3.0, 2015-10-22 Dec 24, 2016
Quartz2D Quartz2D: Version 5.0, 2017-09-19 Oct 16, 2017
Reachability Reachability: Version 5.0, 2016-05-05 Feb 13, 2018
SamplePhotoEditingExtension SamplePhotoEditingExtension: Version 2.0, 2016-09-13 Dec 24, 2016
SegueCatalog SegueCatalog: Version 1.0, 2015-06-08 Jun 13, 2015
ShapeEdit ShapeEdit: Version 1.2, 2016-03-01 May 15, 2016
SimpleGestureRecognizers renamed: GestureRecognizersUsingstandardUIGestureRecognizers -> Simpl… May 15, 2016
SimpleTunnel SimpleTunnel: Customized Networking Using the NetworkExtension Framew… Feb 13, 2018
Speakerbox Speakerbox: Version 1.0, 2016-09-13 Dec 24, 2016
SpeedSketch SpeedSketch: Version 1.0, 2016-09-29 Dec 24, 2016
SpeedySloth SpeedySloth: Using HealthKit to build a workout app for Apple Watch: … Dec 27, 2017
TableSearch Table Search with UISearchController: Version 1.6, 2018-01-16 Feb 13, 2018
TableViewPlayground TableViewPlayground: Using View-Based NSTableView and NSOutlineView: … Feb 10, 2018
ToolbarSample ToolbarSample: Version 3.0, 2016-10-27 Dec 24, 2016
TopSongs TopSongs: Version 5.2, 2017-03-23 Feb 13, 2018
TouchCanvas TouchCanvas: Version 2.1, 2017-11-16 Nov 19, 2017
UICatalog UIKit Catalog: Version 13.3, 2016-11-17 Dec 24, 2016
UnicornChat UnicornChat: Version 1.0, 2016-10-27 Dec 24, 2016
UserInterface3DTransforms User Interface 3D Transforms: Version 1.0, 2017-04-27 Oct 16, 2017
WatchBackgroundRefresh WatchBackgroundRefresh: Version 1.0, 2016-09-13 Dec 24, 2016
WatchKitCatalog WatchKit Catalog: Version 1.0, 2015-03-09 Mar 14, 2015
WatchPuzzle WatchPuzzle: Version 1.0, 2016-10-27 Dec 24, 2016
ZoomingPDFViewer ZoomingPDFViewer: Version 6.0, 2017-04-27 Oct 16, 2017
avloopplayer AVFoundation Looping Player: Using AVQueuePlayer and AVPlayerLooper t… Mar 14, 2018
README.md modified: README.md Oct 16, 2017
samplecode.csv Update sample list Mar 14, 2018

README.md

Swift学习资源

Swift

Swift,一种强大的开源编程语言,让大家都能开发出众的 App。 Swift 是一种强劲而直观的编程语言,它由 Apple 创造,可用来为 iOS、Mac、Apple TV 和 Apple Watch 开发 app。它旨在为开发者提供充分的自由。Swift 易用并且开源,只要有想法,谁都可以创造非凡。

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory safe by default. On December 3, 2015, the Swift language, supporting libraries, debugger, and package manager were published under the Apache 2.0 license with a Runtime Library Exception, and Swift.org was created to host the project.

苹果公司在WWDC 2014上宣布了他们将会推出一款新的编程语言,面向iOS和OS X系统的开发人员,这个新的语言被命名为Swift。

Swift在iOS 8发布的时候推向市场,用来取代 Objective-C 语言。 对于这个巨大的决定,苹果公司的解释是Swift速度更快,使用起来更加容易。 在Swift推出之后,苹果公司应该不会停止对 Objective-C 的支持,开发工具会同时支持两种语言。

在 Swift 开源后,开发者社区活跃。目前 CocoaPods 中有大量的第三方开发库已经支持 Swift。

贡献


官方资源

权威文档


社区文档

课程


非官方文档与社区(英文)

初级话题

深入话题

社区

翻译

评论

课程


官方示例

Apple同时发布了3个示例程序,用于初窥Swift开发的项目。

  • Lister: A Productivity App Built in Swift github
  • UICatalog: Creating and Customizing UIKit Controls in Swift apple / github
  • Adventure: Building a SpriteKit Game Using Swift apple / github
  • GestureRecognizers: Using standard UIGestureRecognizers in Swift github

非官方代码分享

  • Swift Trending
  • FlappySwift 用Swift实现的FlappyBird
  • swift-2048
  • PNChart-Swift 可以创建图表的库
  • Game of Life 一个游戏
  • swift-alarm 基于地理位置的提醒工具 blog
  • SwiftNote
  • 翻翻看 游戏翻翻看Swift版
  • HackerNews HackerNews网站的第三方客户端
  • SwiftWeather 一个天气客户端
  • SwiftSingleton
  • Swift: Spiroswiftograph a cool example of what you can do in the Playground
  • UIImageView-BetterFace-Swift 展示图片是加入面部识别,改善展示效果
  • YYHRequest-Swift 异步HTTP请求类
  • Noah’s Ark, in Swift is a funny example of unicode support
  • Cartography is an excellent example of what could be achieved with operator overloading. If you don’t like writing Autolayout constraints you should definitely check it out.
  • Dollar is a Swift library that provides useful functional programming helper methods without extending any built in objects. It is similar to Lo-Dash or Underscore in Javascript.
  • swifter Tiny http server engine written in Swift programming language.
  • SwiftyJSON
  • Agent Minimalistic Swift HTTP request agent for iOS and OS X
  • JustUiKit - JustUiKit是一套Android样式工具iOS UI套件。 JustUiKit包含JustLinearLayout,JustFrameLayout, JustRelativeLayout等。 它旨在使Android开发人员轻松构建iOS UI。 也为iOS开发人员提供了一种新的方式来构建UI。

开发工具

xcode 6 下载

xcode 6 安装系统要求为MacOSX 10.9.3+


其它

因为重名躺枪的 Swift

  • Swift Lang 一门很专业的并行编程语言,有苹果在Swift页面的链接,肯定带过去很多访问量。
  • OpenStack Swift OpenStack Object Storage (Swift)。
  • Swift 聊天工具 基于XMPP的聊天工具及服务端SDK。
  • Taylor Swift 美国乡村音乐女創作歌手、吉他歌手、演员。这位1989年出生的美女获得过数不清的格莱美奖及其它排行榜大奖。2014/05/30刚举办了泰勒•斯威夫特“红”巡演上海演唱会。WWDC2014之后三天,她从Google搜索结果首页被挤出,很受伤,歌迷们也很受伤。去脸盆网关注她,去音悦台听她的歌

讨论区

  • 【iOS开发者-开始Swift】QQ交流群32958950 申请时请说明身份。