iOS Archives

These posts are syndicated from my iOS Dev Diary over at pinkstone.co.uk.

The format is slightly different with more code snippets and less explanations. I had originally designed it as a notebook in iOS Development – now you can follow along if you’re interested.

Creating a Searchable Table View in iOS

In this 6-part series I’ll show you how to create a searchable UITableView in an iOS App. We’ll start with a standard single view application template in Xcode, create a table view with dummy data, and finally make it searchable. This course demonstrates how to do this with Xcode 5.1 and iOS 7.1. We’ll also … Read more

How to dismiss the iOS Keyboard when the done button is pressed

It has puzzled many generations how to get rid of the keyboard when the user is done entering text into an iOS text field. There doesn’t seem to be an obvious action we can attach to make this happen. That’s because rather than looking at the keyboard itself, we need to look at what actually […]

Links to the latest Social Icons

Facebook, Twitter & Co. change their brandings every now and again, and every time I need them for a project I keep scrambling to find the official links. Well no more – here’s a list of them all: Twitter: https://about.twitter.com/press/brand-assets Facebook: https://www.facebookbrand.com LinkedIn: http://developer.linkedin.com/documents/branding-guidelines Apple and App Store: https://developer.apple.com/app-store/marketing/guidelines/

How to read you App Version and Build from the Main Bundle

The required Version and Build numbers you add to Xcode make it into your app’s Main Bundle. You can retrieve those values from the Main Bundle and use them in your app. Here’s how: – (void)viewDidLoad { [super viewDidLoad]; // set version and build fields from bundle NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@”CFBundleShortVersionString”]; NSString […]

What are the button indexes in a three-button UIAlertView

The cancel button is always index 0, and all other buttons in the array start at index 1 counting up. For completion, here’s how to create it: – (IBAction)showAlert:(id)sender { // create an alert view with three buttons UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@”Three Button Alert” message:@”This is an alert view with more than two buttons. […]