Category Archives: iOS

Push Multiple Views onto Nav Stack

Courtesy of Stack Overflow:



Set a background colour of a uitableview


Back Button Text


Background image in UITableViewCell


Remove Cell Separator Style from UITableView


Configure keys and ssl certs for apple Push Notification

Great guide for configuring push notification:

DNS Cache Flush Mac OS X

dscacheutil -flushcache

Xcode 4 Source Control Woes

I spent an age trying to work out why i couldn’t check out my code from a SVN REPO.

So turns out Xcode will not allow you to download from a SVN source that uses a untrusted SSL certificate.

You would get an error similar to: The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!

So how to work around this?

Open up a terminal window, and begin a manual attempt at downloading the SVN repo with something like this..

svn co https://........

you will then be prompted to reject, accept or permanently trust this certificate..

Hope this helps some poor soul..

IndexPath Row from sub-function

Ever wondered how you could generate the IndexPath row from a Function not related to tableview?

UITableViewCell *clickedCell = (UITableViewCell *)[[sender superview] superview];
NSIndexPath *clickedButtonPath = [_tableView indexPathForCell:clickedCell];
int row = [clickedButtonPath row];

Hide UI Keyboard, back to basics

in ViewDidLoad set the UITextfield delegate to self, and assign to the firstresponder like this

- (void)viewDidLoad {
[textfield setDelegate:self];
[textfield becomeFirstResponder];

- (BOOL)textFieldShouldReturn:(UITextField *)textfield
[textfield resignFirstResponder];