摘要: //image dispatch_queue_t network_queue; network_queue = dispatch_queue_create("com.myapp.network", nil); dispatch_async(network_queue, ^{ UIImage *cellImage = [self loadMyImageFromNetwork:[self.content objectAtIndex:indexPath.row]]; //缓存到本地 // 回到主线程 dispatch_async(dispatc... 阅读全文
posted @ 2013-06-14 17:27 xiaoxiaoxigua 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 物理游戏引擎GameSalad 阅读全文
posted @ 2013-06-14 16:51 xiaoxiaoxigua 阅读(260) 评论(0) 推荐(0) 编辑
摘要: - (UIImage*)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize{ // Create a graphics image context UIGraphicsBeginImageContext(newSize); // Tell the old image to draw in this new context, with the desired // new size [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)... 阅读全文
posted @ 2013-06-14 11:40 xiaoxiaoxigua 阅读(148) 评论(0) 推荐(0) 编辑