Testing how an application responds to different network responses and conditions can be a real pain.
Today I came across a library from Oliver Hannigan that makes this much easier. This library allows you to intercept http requests made by your app (whether you use NSURLConnection or some other networking framework) and provide a response of your choice.
You can also set a custom response time or download speed. There are constants set so you can easily simulate the download speed of a GPRS, EDGE, 3G, 3GPlus or WiFi connection.
You can find the library OHHTPStubs on Github here with extensive documentation and a demo project.
A fantastic library for faster testing of an app’s networking.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.