摘要: + (KKTextHUB *)sharedTextHUB{ static KKTextHUB *sharedHub = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedHub = [[self alloc]initWithFrame:CGRectMake(0, 0, 0, 0)]; }); return sharedHub;} 阅读全文
posted @ 2013-08-20 16:38 cocoajin 阅读(170) 评论(0) 推荐(0) 编辑
摘要: - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); UIGraphicsPushContext(context); CGRect boxRect = CGRectMake(0, 0, 90,90); float radius = 10.0f; CGContextBeginPath(context); CGContextMoveToPoint(context, CGRectGetMinX(boxRect) + radius, ... 阅读全文
posted @ 2013-08-20 16:35 cocoajin 阅读(2047) 评论(0) 推荐(0) 编辑