DEComposeViewController icon indicating copy to clipboard operation
DEComposeViewController copied to clipboard

Variable 'imageOrientation' is used uninitialized whenever switch default is taken

Open web-differently opened this issue 10 years ago • 1 comments

pls i have error in default inscructions

UIImageOrientation imageOrientation;
switch ([UIApplication sharedApplication].statusBarOrientation) {
    case UIInterfaceOrientationLandscapeLeft:
        imageOrientation = UIImageOrientationRight;
        break;
    case UIInterfaceOrientationLandscapeRight:
        imageOrientation = UIImageOrientationLeft;
        break;
    case UIInterfaceOrientationPortrait:
        imageOrientation = UIImageOrientationUp;
        break;
    case UIInterfaceOrientationPortraitUpsideDown:
        imageOrientation = UIImageOrientationDown;
        break;
    default:
        break;

/DECompose/DEComposeViewController.m:152:9: Variable 'imageOrientation' is used uninitialized whenever switch default is taken

web-differently avatar Aug 10 '14 08:08 web-differently

up pls

web-differently avatar Aug 23 '14 18:08 web-differently