Category: objective-c
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 [...]
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 [...]
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 [...]
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 [...]
Here is a simple example to add elements in a dictionary and go through a for loop to extract values by keys.
In this post I show how to use the two nice JSON libraries available for iPhone development
Use NSDateFormatter to extract Date components and use it to build a count down App.
iMustache adds a mustache on your photos! Turn your friends’ face and send the picture to them!
iAfro adds some funkiness on your photos! Turn your friends’ hair to afro and send the picture to them!
A simple twitter client using Objective C API provided by Matt Legend. There is also some sample code if you are interested.
This is the 3 part of me Playing with Map Kit. Here i explain some limitations and custom Annotations.
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 [...]
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 [...]
A small snippet of code to show how to use sprintf functionality with NSString
















