UIButton 썸네일형 리스트형 IB 없이 하기, UIButton * 네이버 맥부기 카페에서 아이디 '문씨'님의 작성한 글들이 좋아 블로그에 재구성을 한다. * 개념정리에 많은 도움이 될 것 같다. 버튼 넣는 법입니다 - (UIButton *)CreateButton:(NSString *)title type:(UIButtonType)type view:(UIView *)view frame:(CGRect)frame target:(id)target action:(SEL)action { UIButton *button = [[UIButton buttonWithType:type] retain]; button.frame = frame; [button setTitle:title forState:UIControlStateNormal]; [button addTarget:target act.. 더보기 UIButton의 기능 설정 ●UIButton의 기능들을 설정 //사용하는 UIImage인스턴스 설정 UIImage *normalImage = [ UIImage imageNamed : @"normal.png"]; UIImage *highlightImage = [UIImage imageNamed : @"highlight.png"]; UIImage *disableImage = [UIImage imageNamed : @"disable"]; UIImage *normalBgImage = [ UIImage imageNamed : @"normal.png"]; UIImage *highlightBgImage = [UIImage imageNamed : @"highlight.png"]; UIImage *disableBgImage = [UIImage i.. 더보기 이전 1 다음