아이폰어플개발정보2010. 10. 21. 12:34
[아이폰 앱 개발] 테이블셀이 선택시 색상변경하는 콜백함수

// Update the text color of each label when entering and exiting selected mode.

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

    if (selected) {

        name.textColor = [UIColor whiteColor];

        type.textColor = [UIColor whiteColor];

        prompt.textColor = [UIColor whiteColor];

    } else {

        name.textColor = [UIColor blackColor];

        type.textColor = [UIColor darkGrayColor];

        prompt.textColor = [UIColor darkGrayColor];

    }

}

Posted by 오늘마감

댓글을 달아 주세요

아이폰어플개발정보2010. 10. 12. 05:45
테이블셀이 선택시 색상변경하는 콜백함수

// Update the text color of each label when entering and exiting selected mode.

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

    if (selected) {

        name.textColor = [UIColor whiteColor];

        type.textColor = [UIColor whiteColor];

        prompt.textColor = [UIColor whiteColor];

    } else {

        name.textColor = [UIColor blackColor];

        type.textColor = [UIColor darkGrayColor];

        prompt.textColor = [UIColor darkGrayColor];

    }

}

Posted by 오늘마감

댓글을 달아 주세요