How to Create Universally Unique Identifier in iOS 6
This is how you create or extract your UUID for your iOS 6 device. Check out this link:
http://icodetoplay.com/tips/ios-6-sdk-create-universally-unique-identifier/
Setting up a UITableView with Data from Web using AFNetworking
This is a great example of how to utilize AFNetworking in fetching data from the web and placing it to your UITableView. Here’s the link:
Comparison between using performSelectorInBackground and GCD
This is a great explanation and sample on the use of performSelectorInBackground and GCD:
http://stackoverflow.com/questions/7290931/gcd-threads-program-flow-and-ui-updating
I prefer using GCD because the code is cleaner and is the new technology used.
Preventing Snapshots in Xcode
This is how I managed to prevent Xcode from doing Snapshots when doing mass-editing:
http://stackoverflow.com/questions/6163785/xcode-4-disable-snapshots-creation-on-refactoring
How to Programmatically Search A Developer or Company in AppStore
This is the code I used when I want to do a search of a single developer or company in the AppStore without having to go through Mobile Safari:
NSString *searchString = @”john%20joseph%20santos”;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@”http://phobos.apple.com/WebObjects/MZSearch.woa/wa/search?media=software&term=%@”, searchString]]];
Handy iTunes URL Links
This is a cool site that includes links to iTunes for your applications, even music and movies. Here’s the link:
Locating iPhone Simulator on your Mac
This is the path on where to locate your iPhone Simulator files on your Mac.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
Creating Transparent UIImage
This is how I managed to create a transparent UIImage in one of the projects I’m working on. The answer by dasblinkenlight is the code that worked. Here’s the link:
http://stackoverflow.com/questions/12235570/how-to-create-a-blank-transparent-png-in-objective-c
Displaying Custom Notification View on Current View
In one of the projects I’ve been working on, I used this code to display my custom notification prompt in the current view. The application setup is like this, one UITabBarController that houses three UINavigationControllers.
The code is this:
if (self.tabBarController.selectedIndex == 0)
{
[self displayNotificationWhenOnline:self.navController1.visibleViewController.view];
}
else if (self.tabBarController.selectedIndex == 1)
{
[self displayNotificationWhenOnline:self.navController2.visibleViewController.view];
}
Custom Back Button
This is how I changed my back button to a custom one and removed the text.
This is what I placed in my root view controller in my UINavigationController under viewDidLoad
// Setting back button title to none
self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@” “
style:UIBarButtonItemStyleBordered
target:nil
action:nil] autorelease];
// Custom back button
UIImage *backImageNormal = [[UIImage imageNamed:@”back.png”]
resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
UIImage *backImageHighlighted = [[UIImage imageNamed:@”back_onpress.png”]
resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:backImageNormal
forState:UIControlStateNormal
barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:backImageHighlighted
forState:UIControlStateHighlighted
barMetrics:UIBarMetricsDefault];
// END - Custom back button
And this is the only code I place on the other root view controllers inside that navigation controller.
// Setting back button title to none
self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@” “
style:UIBarButtonItemStyleBordered
target:nil
action:nil] autorelease];