ios - Swift 2 to Swift 3 -


in swift 2 able write statement:

var reachability = scnetworkreachabilitycreatewithname(kcfallocatordefault, "www.apple.com").takeretainedvalue() 

in swift 3 says scnetworkreachability? has no member takeretainedvalue().

just remove takeretainedvalue() don't need anymore.

var reachability = scnetworkreachabilitycreatewithname(kcfallocatordefault, "www.apple.com") 

Comments