/** @since Available in iOS 7.0 and later. */ public CGImagePropertyOrientation getOrientation() { if (has(Keys.DestinationOrientation())) { CFNumber val = get(Keys.DestinationOrientation(), CFNumber.class); return CGImagePropertyOrientation.valueOf(val.longValue()); } return null; }