現在知っている0の変化
1322 ワード
アップルはSwift 3を発売した.0、いろいろなところを変えて、今私が出会ったことについて一つ一つ来ます(解法があります)
, c for , ( ),
,
for i : Int In -10 .. 0, ok
(0...10).reverse()
, NS , NSNotification
NS, , ,
API
,Notification , name string ,
, Name
, NSURLSession, URLSession,
request URLRequest( var)
,_dispatch_once ,
: use lazily initialized globals instead,
* *, ,
,CGFloat : var a: CGFloat = 10,
a = a / 2 , a = a / 7 ,
7 CGFloat,
,CGRectMake , CGRect, Api,
,
init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat),
init , ,
,
,view.isKindOfClass(UIImageView) ,
view.isKind(of: UIImageView) ,
, view.isKindof: (UIImageView) , wtf
if view is UIImageView {
}
,URLSessionDownloadDelegate ,
,public typealias SCNetworkReachabilityCallBack = @convention(c) (SCNetworkReachability,
SCNetworkReachabilityFlags,
UnsafeMutablePointer?) -> Swift.Void
( ), UnsafeMutablePointer, ?, Swift.
,