Monthly Archive for July, 2009

Check internet connection on iPhone

People (especially iPhone developers) watch out! If your iPhone app relies on any kind of internet back-end-service, don’t forget to check if the service is available and even more to check if a internet connection is currently possible (for instance there is no network or the iPhone is in flight mode).

If you don’t provide enough information to your users, that your iPhone app needs a valid internet connection or your back-end-service is currently not available, Apple may reject your iPhone App.

You will find several examples how to achieve that at the web. The following code I found several times at stackoverflow.com could be very useful for you:

Continue reading ‘Check internet connection on iPhone’

UIButton in UITableView Footer

Once upon a time, there was a pretty UITableView within my iPhone user interface. This table included some UITableViewCells which were used to provide some information of a specific data record. At this time I thought that it would be nice to have a big red delete button at the end of the table (like we can locate it in the edit mask of the Apple Calendar App).

To realize such a button at the end of the table we can simply use the ability to define our own footer view for each section within a UITableView. The next steps describe how we can do that for a single section.

Continue reading ‘UIButton in UITableView Footer’