最新消息:20210917 已从crifan.com换到crifan.org

【记录】swift 2升级到swift 3之后语法变化

Swift crifan 1537浏览 0评论

‘var’ parameters are deprecated and will be removed in Swift 3

Use of string literal for Objective-C selectors is deprecated; use ‘#selector’ instead

‘init(start:end:)’ is deprecated: it will be removed in Swift 3.  Use the ‘..<‘ operator.

Use ‘#selector’ instead of explicitly constructing a ‘Selector’

‘–‘ is deprecated: it will be removed in Swift 3

 ‘++’ is deprecated: it will be removed in Swift 3

‘anyGenerator’ is deprecated: renamed to ‘AnyGenerator’

‘init()’ is deprecated: init() will be removed in Swift 3.  Use `nil` instead

转载请注明:在路上 » 【记录】swift 2升级到swift 3之后语法变化

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
91 queries in 0.180 seconds, using 20.05MB memory