- (void)viewDidLoad
{
[super viewDidLoad];
[btn_menuicon setBackgroundImage:[UIImage imageNamed:@"icon.png"] forState:UIControlStateNormal];
[btn_menuicon setBackgroundImage:[UIImage imageNamed:@"selected_icon.png"] forState:UIControlStateHighlighted];
[btn_menuicon setBackgroundImage:[UIImage imageNamed:@"selected_icon.png"] forState:UIControlStateSelected];
[btn_menuicon setSelected:NO];
}
-(IBAction)menu_Action:(id)sender
{
if(btn_menuicon.selected == NO)
{
[btn_menuicon setSelected:YES];
}
else
{
[btn_menuicon setSelected:NO];
}
}
No comments:
Post a Comment