摘要:
1 -(UIImage*)changeImage:(UIImage*)imageT withNewSize:(CGSize)newSizeT 2 { 3 //define a new image 4 UIImage* newImage = nil; 5 6 //set the image to current context 7 UIGraphicsBegainImageContext(newSizeT); 8 //redraw the image to new rect 9 ... 阅读全文
摘要:
1 typeof (NSString*) __weak str = @"this is a test";2 double delayInSeconds = 2.0;3 dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));4 dispatch_after(popTime, dispatch_get_main_queue(), ^(void){5 NSLog(@"%@",str);6 ... 阅读全文