随笔分类 -  ios第三方

开源第三方框架,源码,详细用法,用处,注意事项。 成熟的开源项目; 自定义ios控件;
CustomToolBar
摘要:- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx{ if([selfisMemberOfClass: [UIToolbarclass]]) { UIImage *image = [UIImage imageNamed:@"微博切tu_65.png"]; //CGContextClip(ctx); CGContextTranslateCTM(ctx, 0, image.size.height); CGContextScaleCTM(ctx, 1.0, -1.0); CGContextDr... 阅读全文

posted @ 2012-11-15 17:56 无量少年 阅读(171) 评论(0) 推荐(0)

IOS 自定义导航栏标题和返回按钮标题
摘要:IOS中自定义导航栏标题:UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(160, 0, 120,50)];titleText.backgroundColor = [UIColor clearColor];titleText.textColor=[UIColor whiteColor];[titleText setFont:[UIFont systemFontOfSize:17.0]];[titleText setText:@"XXX"];self.navigationItem.titleVie 阅读全文

posted @ 2012-11-12 13:44 无量少年 阅读(548) 评论(0) 推荐(0)

SDWebImage 笔记
摘要:SDWebImage托管在github上。https://github.com/rs/SDWebImage这个类库提供一个UIImageView类别以支持加载来自网络的远程图片。具有缓存管理、异步下载、同一个URL下载次数控制和优化等特征。使用示范的代码:UITableView使用UIImageView+WebCache类(基本应用,UIImageView的一个category)前提#import导入UIImageView+WebCache.h文件,然后在tableview的cellForRowAtIndexPath:方法下:- (UITableViewCell *)tableView:(UI 阅读全文

posted @ 2012-11-12 13:21 无量少年 阅读(296) 评论(0) 推荐(0)

导航