UIBUTTON

平成26年9月5日

[objc]
– (void)awakeFromNib
{
// Initialization code
[self.switch_button setImage:[UIImage imageNamed:@"on.png"] forState:UIControlStateSelected];
[self.switch_button setImage:[UIImage imageNamed:@"off.png"] forState:UIControlStateNormal];
switch_button.selected = YES;
//switch_button.selected = NO;
}
[/objc]