Alternatives to NSHost in iPhone app

前端 未结 3 1625
广开言路
广开言路 2020-12-09 23:54

I\'m currently using this code

    NSHost *host = [NSHost hostWithAddress:hostname];
if (host == nil) {
    host = [NSHost hostWithName:hostname];
    if (ho         


        
3条回答
  •  Happy的楠姐
    2020-12-10 00:15

    Look at this: http://blog.zachwaugh.com/post/309927273/programmatically-retrieving-ip-address-of-iphone

提交回复
热议问题