tags:

views:

20

answers:

1

hi i am new to iphone development. i need to store a buttontag value temporarily and use it in another view is there any method to do this pls help me

A: 

Safari for iPhone supports cookies as every other browsers does. If you refer to a real objective-c coded app you might have a look at the NSUserDefauls and their related documentation in the SDK. These allow you to easily store and retrieve simple data.

Just a quick example here:

[[NSUserDefaults standardUserDefaults] setBool:saveUsername forKey:@"saveUsername"];
[[NSUserDefaults standardUserDefaults] setInteger:tabIndex forKey:@"startupTab"];
Daniel Bleisteiner
Altough working, this seams most inappropriate if Jeyavel is really trying to pass a value from one viewController to another, which is what I understood.
tonklon