A blog about creating valuable software
iOS Boot Camp Coming to Montreal Nov 7-8
How to change background color of selected UITableViewCell
October 29, 2012
A reminder to myself for how to create a singleton in iOS.
Oct 29, 2012 @ 23:14:44
I’ve been using the dispatch_once approach on recent projects.
static dispatch_once_t onceToken;
static id sharedHelper;
sharedHelper = [[self alloc] init];
Oct 30, 2012 @ 12:19:29
Thank you Stuart. A colleague of mine just made the same comment. I dumped the old code and included x2 links that go with your approach.
Thank you for point this out.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Blog at WordPress.com.
The Notepad Theme.
Get every new post delivered to your Inbox.
Join 265 other followers