iphone Programming Glossary: fixorientation
iOS: Image get rotated 90 degree after saved as PNG representation data http://stackoverflow.com/questions/10850184/ios-image-get-rotated-90-degree-after-saved-as-png-representation-data @ UIImagePickerControllerOriginalImage NSLog @ Saving photo self saveImage NSLog @ Fixing orientation delegate.fixOrientationPhoto self fixOrientation UIImage imageWithContentsOfFile delegate filePath imageName NSLog @ Scaling photo delegate.scaledAndRotatedPhoto.. NSLog @ Saving photo self saveImage NSLog @ Fixing orientation delegate.fixOrientationPhoto self fixOrientation UIImage imageWithContentsOfFile delegate filePath imageName NSLog @ Scaling photo delegate.scaledAndRotatedPhoto self scaleAndRotateImage.. UIImagePNGRepresentation delegate.originalPhoto imageData writeToFile delegate filePath imageName atomically YES Here fixOrientation and scaleAndRotateImage functions taken from here and here respectively. They works fine and rotate image when I apply them..
iphone UISearchBar Done button always enabled http://stackoverflow.com/questions/4728338/iphone-uisearchbar-done-button-always-enabled void searchBar UISearchBar searchBar textDidChange NSString searchText if searchBar.text.length 0 self fixOrientation searchBar resignFirstResponder else NSLog @ typed void searchBarTextDidBeginEditing UISearchBar theSearchBar NSLog @..
iOS UIImagePickerController result image orientation after upload http://stackoverflow.com/questions/5427656/ios-uiimagepickercontroller-result-image-orientation-after-upload honoring that flag. To rotate the UIImage to display properly when uploaded you can use a category like this UIImage fixOrientation.h @interface UIImage fixOrientation UIImage fixOrientation @end UIImage fixOrientation.m @implementation UIImage fixOrientation.. UIImage to display properly when uploaded you can use a category like this UIImage fixOrientation.h @interface UIImage fixOrientation UIImage fixOrientation @end UIImage fixOrientation.m @implementation UIImage fixOrientation UIImage fixOrientation No op.. when uploaded you can use a category like this UIImage fixOrientation.h @interface UIImage fixOrientation UIImage fixOrientation @end UIImage fixOrientation.m @implementation UIImage fixOrientation UIImage fixOrientation No op if the orientation is..
|