{ Snipperize } /Objective-C

Objective-C snippets

Here are the latest Objective-C snippets. Please choose your favorite one or add a new one.

NSDateFormater

How to use NSDateFormater

Objective-C / NSDateFormater, NSDate / by ThePeppersStudio (18 days, 15.96 hours ago)

Autodetect NSString Encoding from NSData

Use UniversalDetector to detect NSString encoding.

Objective-C / NSString, encoding, universaldetector / by ThePeppersStudio (20 days, 15.60 hours ago)

Rounded Corner UIImage

Just call the static method makeRoundCornerImage and pass your image to have the image rounded off the way you want. Note that you do need the CoreGraphics framework for this to compile.

Objective-C / UIImage, round, corner / by ThePeppersStudio (23 days, 21.13 hours ago)

Rounded Corner UIImageView

you'll have to import <QuartzCore/QuartzCore.h>

Objective-C / UIImageView, round, corner / by ThePeppersStudio (23 days, 21.21 hours ago)

Make an Image with Rounded Corners

How to make an image with rounded corners

Objective-C / UIImage, round, corner / by ThePeppersStudio (34 days, 10.63 hours ago)

TouchXML Quick Guide

TouchXML Tutorial Code

Objective-C / TouchXML, CXMLDocument, parser, XML / by ThePeppersStudio (48 days, 17.64 hours ago)

Fetch Objects from the Object Model

Fetching data from the object model is very easy, no SQL skills required, almost. To simplify fetching data and reducing the amount of code I created a simple helper class with static methods that do most of the work. //predicate = [NSPredicate predicateWithFormat:@"(ProvinceToCounty == %@)", selectedObject];

Objective-C / coredata, NSFetchRequest, NSPredicate / by ThePeppersStudio (50 days, 9.72 hours ago)

Escape single quotes in strings for SQLite3 database

This function will escape the NSString for SQLite3 database. You can use this function to escape or change any other character.

Objective-C / NSString, escape, sqlite, database / by ThePeppersStudio (58 days, 12.27 hours ago)

Check the first launch of the application on iPhone

Really simple example how to check the first launch of the iPhone application written in Objective-C in XCode.

Objective-C / iphone, NSUserDefaults / by ThePeppersStudio (58 days, 12.31 hours ago)

Get System Available Memory

Check iphone os system available memory.

Objective-C / memory, host_statistics / by ThePeppersStudio (59 days, 13.57 hours ago)