摘要:
实现这个有很多方法,来看看我的小把戏。嘿嘿。代码:ClickImageView.h@interface ClickImageView : UIImageView{ id _target; SEL _selector;}-(void)addTarget:(id)target selector:(SEL)selector;@endClickImageView.m#import "ClickImageView.h"@implementation ClickImageView- (id)initWithFrame:(CGRect)frame{ self = [super initW 阅读全文
摘要:
上图:不要怀疑,这是一个label。代码ColorsLabel.h@interface ColorsLabel : UILabel { NSMutableDictionary *_attributedDic; NSMutableAttributedString *_attributedText;}@property (nonatomic, copy) NSMutableDictionary *attributedDic;@endColorsLabel.m#import <CoreText/CoreText.h>#import "ColorsLabel.h"#im 阅读全文