04 2013 档案

摘要:UIImageJPEGRepresentation()在二次加载同一个文件时会出现问题 原因是在加载图片时使用了[UIImage imageWithContentsOfFile:(NSString *)]方法 这似乎会使文件一直处于打开状态 所以会使UIImageJPEGRepresentation()方法出错 解决的办法是NSData * data=[NSData dataWithContentsOfFile:imgPath];UIImage * img=[UIImage imageWithData:data];这样加载图片 阅读全文
posted @ 2013-04-23 19:34 yw415 阅读(363) 评论(0) 推荐(0)
摘要:使用[UIViewsetAnimationDidStopSelector:@selector()]方法指定的委托函数有时候无法调用 原因是没有指定delegate使用[UIViewsetAnimationDelegate:self]方法指定委托便可以了 阅读全文
posted @ 2013-04-13 15:56 yw415 阅读(134) 评论(0) 推荐(0)
摘要:-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{ if([touch.view isKindOfClass:[PhotoSelectData class]]) { return NO; } returnYES;} 阅读全文
posted @ 2013-04-13 15:52 yw415 阅读(274) 评论(0) 推荐(0)