hii NSUserDefault is the default class provided to store some information by default. The storage is permanent storage  but stores a very little content as a dictionary. It uses a key value pairing concept.


the sample code to store the data in NSUserdefaults is







    NSUserDefaults *defaultsstorage=[NSUserDefaults standardUserDefaults];

//text1.text is the my textfiled1 data    

    [defaultsstorage setObject:text1.text forKey:@”name”];

    [defaultsstorage setObject:text2.text forKey:@”lastname”];


    [defaultsstorage synchronize];






// to retrieve the data from nsuserdegfaults



prints the associated data with the keys

 NSUserDefaults *defauls=[NSUserDefaults standardUserDefaults];


    NSLog(@”%@”,[defauls objectForKey:@”name”]);

    NSLog(@” lastname %@”,[defauls objectForKey:@”lastname”]);




scrolling images on a scrollview

– (void)viewDidLoad

{int num=10;



    for (int i=0; i<num; i++) {



        sub=[[UIView alloc]initWithFrame:CGRectMake(scrollview.frame.size.width*i, 0, scrollview.frame.size.width, scrollview.frame.size.height)];



        UILabel *lab=[[UILabel alloc]initWithFrame:CGRectMake(10, 200, 100, 100)];



        UIImageView *imagev=[[UIImageView alloc]initWithFrame:CGRectMake(40, 40, 100, 100)];

        imagev.image=[UIImage imageNamed:@”info.png”];

        [sub addSubview:imagev];

        [scrollview addSubview:sub];








    [scrollview setContentSize:CGSizeMake(scrollview.frame.size.width*num, scrollview.frame.size.height)];


   // [scrollview addSubview:sub];

    [super viewDidLoad];

// Do any additional setup after loading the view, typically from a nib.


Jail Breaking an iphone 4S

Jailbreak Using Absinthe




Step 1: Download Absinthe from here (Mac) or here (Windows), extract it, than run it.

Step 2: Connect your iPad 2 or iPhone 4S to your computer via USB.

Step 3: Click “Jailbreak” to run the program. The process takes awhile in the beginning so don’t worry! It will eventually say “Restoring in Progress,” leave the device alone until it’s completely finished.

Step 4: Once it’s done, you should see the Absinthe icon on the Home screen. Tap the icon and it will then take you to the Greenpois0n site and reboot your idevice. After it loads back up, the Cydia icon will have replaced the Absinthe icon.

And that’s all folks! You can than head over to Cydia and download all your favorite tweaks and apps! Make sure to head over to our forums to see how other users are modding and tweaking their idevices! Also, you can check out our Theme Browser and App Reviews page to see what’s hot in Cydia right now. Let us know how it goes!

Follow us on Twitter and like us on Facebook to be the first to hear about breaking iPhone news, tips, hacks, and more!