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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -