摘要:
//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... 阅读全文
摘要:
物理游戏引擎GameSalad 阅读全文
摘要:
- (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)... 阅读全文