Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiayuanquan authored Dec 23, 2016
1 parent a9a69a9 commit efbc640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

### 方法一:单独创建一个c文件,写一套方法去获取,效果图如下:

![image](https://github.com/xiayuanquan/IP_Test/IPDemo/blob/master/IP_Test/source/test1.png)
![image](https://github.com/xiayuanquan/IP_Test/blob/master/IPDemo/IP_Test/source/test1.png)

### 方法二:直接在ViewController.m中写获取ip地址的方法,该方法简单,而且能实时监测IP地址的变化,效果图如下:

stackoverflow参考地址为:http://stackoverflow.com/questions/7072989/iphone-ipad-how-to-get-my-ip-address-programmatically

![image](https://github.com/xiayuanquan/IP_Test/IPDemo/blob/master/IP_Test/source/test2.png)
![image](https://github.com/xiayuanquan/IP_Test/blob/master/IPDemo/IP_Test/source/test2.png)



Expand Down

0 comments on commit efbc640

Please sign in to comment.