I'm very new at this. So please be patient with me
I have made a simple Application that has only 1 main view, buttons that turn on and off that represent days. It works perfectly on my iphone and the simulator, but when it closes everything is reset. I just need some help or sample code that will allow the buttons to stay selected when the application quits.
Example - In the MainView.h I have
BOOL checkboxSelected; IBOutlet UIButton *day1;
With an - (IBAction)day1

id)sender;
In the MainView.m I have
- (IBAction)day1

id)sender{
if (checkboxSelected == 0){
[day1 setSelected:YES];
checkboxSelected = 1;
} else {
[day1 setSelected:NO];
checkboxSelected = 0;
Each button has this code. When a button is pressed an X appears as the selected state. I want it to stay selected when the App is closed and re-opened. Anyone that can help, I'd really appreciate it

Thanx in Advanced.