Category Archives: iOS

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.

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];
	NSLog(@"%i",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];
 
}

iPad – How much memory can I use?

iPad

iPad

The iPad is shipped with 256mb of RAM, so we thought that programming for the iPad would allow more memory consumption than the iPhone 3G which had a paltry 32mb.

iPhone iPad

Code snippets coming soon.