Using currentIndex as NSNumber and saving NSNumber in NSUserDefaults.
Using currentIndex to store bookmarked page in NSUserDefaults
And this is how I am saving currentIndex in NSUserdefaults:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setInteger:currentIndex forKey:@"currentIndex"];
[defaults synchronize];
If this is the right way of saving currentIndex in NSUserdefaults then how can i retrieve saved currentIndex in NSUserdefaults.
Thanks for help.