Quote:
Originally Posted by Sreenivas Reddy
Hi in my app i want to save and retrieve button state how can i do
i am using two images for button select.png and nonselect.png
pls help
i am getting with NSUserDefault
|
hi
You can save the state of the button using like
if([btn currentimae] == [uiimage imagenamed:@"select.png"])
{
// selected and save to nsuserdefaults
}
else
{
// not selected and save unselected to nsuserdefaults
}
in this way you can find the state of button
hope it ll help u
}