Monday, 9 April 2012

Get Cached image

//image cache
        MyImageView *imgView = [[MyImageView alloc] initWithFrame:CGRectMake(38, 15, 28, 27)];
        [imgView setBackgroundColor:[UIColor clearColor]];
        [imgView addImageFrom:imgURL];
        [cell addSubview:imgView];

String Encoding and decoding in iOS

- (NSString *)stringByURLDecode {

Friday, 30 March 2012

Make it simpler iPhone Apps using Rocket

Rocket is collection of some use ful code like FMDB, ZBarSDK, MBProgressHUD, JSON Reader etc.... use it and make app very easy

Code for see stamped logic : Reward App

// Call as  oStamps =7, uStamps =3  //  o = offer           u = user
 [self drawgrid:oStamps userStamp:uStamps dialog:dialogSTR];


Scan Bar Code / QR Code ZBarSDk in iPhone

Zxing used in Android for this purpose and in iPhone use ZBarSDK

Custom ZBarSDK
 1.  Make a UIView object (called scanView) design it as u want to customize.

GPS Location in iPhone

Make a config file and put there

// Name : Config.h >
// Add this line at import section
#import <CoreLocation/CoreLocation.h>

Config Class + GPS Location

// Name : Config.h

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>