Skip to content

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

@web-differently

Description

@web-differently

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions