2014年7月16日

IOS 本地通知 UILocalNotification

摘要: iOS的本地通知是用到了OC的UILocalNotification对象,加入一个通知很简单,创建一个UILocalNotification对象设置一些对应的参数就行了。// 添加本地通知 1 //增加本地推送 2 NSDate *date = [NSDate dateWithTimeInt... 阅读全文

posted @ 2014-07-16 16:09 李园春秋 阅读(627) 评论(0) 推荐(0) 编辑

2014年7月9日

iOS错误集合

摘要: 1>.ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture原因:不支持低版本的系统如3.0解决:Deployment Target was 3.0. ... 阅读全文

posted @ 2014-07-09 12:20 李园春秋 阅读(778) 评论(0) 推荐(0) 编辑

2014年5月30日

Xcode含静态库多项目依赖编译

摘要: 1.新建 Static Library 项目选择 File -> New -> Project , 项目模板选择 Cocoa Touch Static Library , 项目名称命名为 MyLib.xcodeproj , 注意选中 Use Automatic Reference Counting ... 阅读全文

posted @ 2014-05-30 16:11 李园春秋 阅读(1696) 评论(0) 推荐(0) 编辑

2014年4月29日

图片操作,CoreImage、存储、截屏

摘要: 1.图片的处理,CoreImage添加CoreImage的属性,并生成synthesize@property (nonatomic,strong) CIContext *context;@property (nonatomic,strong) CIFilter *filter1;@property ... 阅读全文

posted @ 2014-04-29 19:03 李园春秋 阅读(491) 评论(0) 推荐(0) 编辑

2014年4月28日

Quartz2D绘图,边框效果

摘要: 在viewController里,添加 1 //创建一个基于UIImage的图形上下文 2 UIGraphicsBeginImageContext(CGSizeMake(320, 450)); 3 //取出“当前”上下文,也就是上句话创建的上下文,返回CGContextRef类型... 阅读全文

posted @ 2014-04-28 17:36 李园春秋 阅读(365) 评论(0) 推荐(0) 编辑

iOS中文网址路径转换

摘要: 1.在网址路径里出现中文,使用方法1:url编码NSString*encodedString= [urlStringstringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];url解码NSString *str = [ss str... 阅读全文

posted @ 2014-04-28 14:13 李园春秋 阅读(482) 评论(0) 推荐(0) 编辑

EGOTableViewPullRefresh实现下拉刷新

摘要: 首先定义EGORefreshTableHeaderView *_refreshView和BOOL _isRefresh;实现EGORefreshTableHeaderDelegate1 //定义下拉刷新试图2 _refreshView = [[EGORefreshTableHeaderView al... 阅读全文

posted @ 2014-04-28 13:20 李园春秋 阅读(189) 评论(0) 推荐(0) 编辑

2014年4月24日

MKMapView 自定义大头针的图片

摘要: 创建一个MKAnnotationView的子类,用于修改大头针的图片#import #import @interface CustomAnnotationView : MKAnnotationView@end1 - (id)initWithAnnotation:(id)annotation reus... 阅读全文

posted @ 2014-04-24 16:54 李园春秋 阅读(901) 评论(0) 推荐(0) 编辑

2014年4月22日

CGImageRef 与 UIImage

摘要: 简单的说,CGImageRef是与位图打交道的先来看一段e文翻译一下: 1)NSImage 是一个抽象类,它能代表各种图像类型,同时也能定义各种图像。通常,大家如果对图像的类型不在意的话,NSImage是很好用的。同时,他也是Appkit唯一能接受的图像类,至少到目前为止是这样。(Appkit ,... 阅读全文

posted @ 2014-04-22 19:10 李园春秋 阅读(1296) 评论(0) 推荐(0) 编辑

UIImage 图片处理

摘要: 1.等比率缩放 1 //等比率缩放 2 - (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize { 3 //设置图片的上下文 4 UIGraphicsBeginImageContext(CGSizeMake(... 阅读全文

posted @ 2014-04-22 18:42 李园春秋 阅读(234) 评论(0) 推荐(0) 编辑

导航