Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access internet on iPhone simulator?

I would like to access internet on iPhone simulator in xcode. I would like to test some urls in my code.

How is it possible?

Thanks you.

like image 964
user549211 Avatar asked Dec 08 '22 00:12

user549211


2 Answers

If you have connection to internet on the development machine the simulator uses that.. There are no special things you have to do.. just make sure you are connected to the internet with your mac

like image 54
stackr Avatar answered Dec 09 '22 12:12

stackr


if what you are asking is to test internet connectivity - you can use the Reachability class, which is available all over the internet. It can tell you if the internet/url is available or not.

like image 27
Veeru Avatar answered Dec 09 '22 13:12

Veeru