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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -