//
// CCUIHilightedLabel.h
// CCFC
//
// Created by xichen on 11-12-16.
// Copyright 2011 ccteam. All rights reserved.
//
#import <UIKit/UIKit.h>
@class CCUIHilightedLabel;
@protocol UIHilightedLabelDelegate
- (void)onHilightedLabelTouchedBegan:(CCUIHilightedLabel *)hilightedLabel;
@end
// a kind of UILabel that can be touched to hilighted
@interface CCUIHilightedLabel : UILabel
{
id _delegate;
BOOL _isHilighted;
BOOL _disableHilight;
UIColor *_hilightedColor;
}
@property(nonatomic, assign) id delegate;
@property(nonatomic, assign) BOOL isHilighted;
@property(nonatomic, assign) BOOL disableHilight;
@property(nonatomic, retain) UIColor *hilightedColor;
- (id)initWithFrame:(CGRect)frame;
- (void)setIsHilighted:(BOOL)isHighlighted;
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIHilightedLabel.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIHilightedLabel.h
本文介绍了CCUIHilightedLabel组件,这是一种可触摸高亮显示的UILabel子类,用于实现iOS应用中标签被触摸时的高亮效果。文章详细描述了该组件的属性与方法,并提供了委托协议来响应触摸事件。

被折叠的 条评论
为什么被折叠?



