iphone Programming Glossary: bnds
Why is XCode archive acting different than XCode build/run on iPhone http://stackoverflow.com/questions/8813711/why-is-xcode-archive-acting-different-than-xcode-build-run-on-iphone works fine in iOS 5. The rotation is done by a static call in a helper class UIImage rotateImage UIImage image CGRect bnds CGRectZero UIImage copy nil CGContextRef ctxt nil CGImageRef imag image.CGImage CGRect rect CGRectZero CGAffineTransform.. tran CGAffineTransformIdentity rect.size.width CGImageGetWidth imag rect.size.height CGImageGetHeight imag bnds rect bnds swapWidthAndHeight bnds tran CGAffineTransformMakeTranslation rect.size.height 0.0 tran CGAffineTransformRotate.. tran CGAffineTransformIdentity rect.size.width CGImageGetWidth imag rect.size.height CGImageGetHeight imag bnds rect bnds swapWidthAndHeight bnds tran CGAffineTransformMakeTranslation rect.size.height 0.0 tran CGAffineTransformRotate tran M_PI..
|