Category: objective-c

Post Pic

iPad SDK 3.2 Document Support

In this post, we’ll discuss about the new File-Sharing and Document Support features in iPhone OS 3.2. The new File-Sharing feature allows user to access /Document directory through iTunes. Users are able to move files from their computers to iPads or iPads to their computers by using this feature. The new Document Support feature allows [...]

Post Pic

Encrypting / Decrypting / Base64 Encode / Decode in iPhone Objective-C

I went through websites to find good tricks to send encrypted data to my server. Here is
encryption / decryption functions by Jeff and Base 64 functions by Cyrus
Include following headers:

#import "NSData-AES.h"
#import "Base64.h"

Implementation:

NSString *password = @"mypassword";
NSString *str = @"hello world 123";
 
// 1) Encrypt
NSLog(@"encrypting string = %@",str);
 
NSData *data = [str dataUsingEncoding: NSASCIIStringEncoding];
NSData *encryptedData = [data [...]

Post Pic

How to add CoverFlow Effect on your iPhone App – OpenFlow

Hello all,
The main criteria of this post is to help you add a cool effect called the “cover flow/open flow” effect to any of your iphone apps. This is cool in two ways actually. One it adds animation kind of effect to your app and the other, its very easy to build too.
I got to [...]

Post Pic

Download an Image and Save it as PNG or JPEG in iPhone SDK

Here is a quick example to save an image as JPEG or PNG. In this tutorial, I’m getting the image from the Internet then I’m saving it as JPEG and PNG.
Key points:

NSData to retrieve the image from the URL
NSDocumentDirectory to find Document folder’s Path
UIImagePNGRepresentation to save it as PNG
UIImageJPEGRepresentation to save it as JPEG

NSLog(@"Downloading…");
// Get [...]

Post Pic

NSMutableDictionary Example – iPhone App Development Basics in Objective-C

Here is a simple example to add elements in a dictionary and go through a for loop to extract values by keys.

Post Pic

How to use SBJSON and TouchJSON

In this post I show how to use the two nice JSON libraries available for iPhone development

Post Pic

Use NSDateFormatter To Create A Countdown App On iPhone

Use NSDateFormatter to extract Date components and use it to build a count down App.

Post Pic

[iPhone App] iMustache

iMustache adds a mustache on your photos! Turn your friends’ face and send the picture to them!

Download Now!

Post Pic

[iPhone App] iAfro

iAfro adds some funkiness on your photos! Turn your friends’ hair to afro and send the picture to them!

Download Now!

Post Pic

Twitter + iPhone = MyTweet

A simple twitter client using Objective C API provided by Matt Legend. There is also some sample code if you are interested.

Post Pic

iPhone SDK 3.0 – Playing with Map Kit – Part 3

This is the 3 part of me Playing with Map Kit. Here i explain some limitations and custom Annotations.

Post Pic

YumMaracas! – iPhone App

We present the newest edition of the Maracas series. Go crazy with “Yummy’s Maracas!” Transform your iPhone/iTouch into maracas by shaking your device, and Yummy will also dance for you on the beach! You can choose from 2 different Yummy’s. Keep this application for musical splashes of fun. Best of all, it’s free!

ObjectGraph LLC and [...]

Post Pic

Accessing Lon/Lat/Alt

I could access Lon/Lat/Alt values from iPhone’s Location Manager class. This is kind neat. I got exact same value that I put my apartment address in google map. When I run this on the simulator, it always returns a address in Santa Clara. Is this Apple’s company building address or something? Let me know if [...]

Post Pic

sprintf with NSString

A small snippet of code to show how to use sprintf functionality with NSString