_voteAgainstButton = [[XWVoteButton alloc] initWithFrame:CGRectMake(85, y, 65, 46)]; UIImage *nAImage = [UIImage imageNamed:@"icon_against_enable.png"]; UIImage *sAImage = [UIImage imageNamed:@"icon_against_active.png"]; [_voteAgainstButton setFaceButtonImage:nAImage andSelectedImage:sAImage];
button中設置初始按鈕和選中的按鈕