Rocket is collection of some use ful code like FMDB, ZBarSDK, MBProgressHUD, JSON Reader etc.... use it and make app very easy
Friday, 30 March 2012
Code for see stamped logic : Reward App
// Call as oStamps =7, uStamps =3 // o = offer u = user
[self drawgrid:oStamps userStamp:uStamps dialog:dialogSTR];
[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.
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>
// 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>
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
Custom Navigation Bar
// Name : CustomNavBar.h
#import <Foundation/Foundation.h>
@interface CustomNavBar : UINavigationBar
{}
#import <Foundation/Foundation.h>
@interface CustomNavBar : UINavigationBar
{}
Common Functions
// Name : CommonFunctions.h
#import <Foundation/Foundation.h>
/*
* System Versioning Preprocessor Macros
*/
#import <Foundation/Foundation.h>
/*
* System Versioning Preprocessor Macros
*/
iPhone animations
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.2];
[btn setFrame:CGRectMake(btn.frame.origin.x, btn.frame.origin.y+40, btn.frame.size.width, btn.frame.size.height)];
resultText.hidden=FALSE;
btn.tag=10;
[UIView commitAnimations];
//another code
zoomedLeftLegView_female.transform = CGAffineTransformMakeScale(0.3,0.3);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
zoomedLeftLegView_female.transform = CGAffineTransformMakeScale(1.0,1.0);
[UIView commitAnimations];
[UIView setAnimationDuration:0.2];
[btn setFrame:CGRectMake(btn.frame.origin.x, btn.frame.origin.y+40, btn.frame.size.width, btn.frame.size.height)];
resultText.hidden=FALSE;
btn.tag=10;
[UIView commitAnimations];
//another code
zoomedLeftLegView_female.transform = CGAffineTransformMakeScale(0.3,0.3);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
zoomedLeftLegView_female.transform = CGAffineTransformMakeScale(1.0,1.0);
[UIView commitAnimations];
Subscribe to:
Posts (Atom)