cruffenach / CRToast

A modern iOS toast view that can fit your notification needs
MIT License
4.17k stars 463 forks source link

Xcode warning - Enumeration value 'CRToastInteractionTypeAll' not handled in switch #169

Closed chanil1218 closed 9 years ago

chanil1218 commented 9 years ago

/Pods/CRToast/CRToast/CRToast.m:13:13: Enumeration value 'CRToastInteractionTypeAll' not handled in switch

NSString *NSStringFromCRToastInteractionType(CRToastInteractionType interactionType) {
    switch (interactionType) {
        case CRToastInteractionTypeSwipeUp:
            return @"Swipe Up";
        case CRToastInteractionTypeSwipeLeft:
            return @"Swipe Left";
        case CRToastInteractionTypeSwipeDown:
            return @"Swipe Down";
        case CRToastInteractionTypeSwipeRight:
            return @"Swipe Right";
        case CRToastInteractionTypeSwipe:
            return @"Swipe Any Direction";
        case CRToastInteractionTypeTapOnce:
            return @"Tap Once";
        case CRToastInteractionTypeTapTwice:
            return @"Tap Twice";
        case CRToastInteractionTypeTwoFingerTapOnce:
            return @"Two Fingers Tap Once";
        case CRToastInteractionTypeTwoFingerTapTwice:
            return @"Two Fingers Tap Twice";
        case CRToastInteractionTypeTap:
            return @"Any Tap";
    }
    return nil;
}

My Xcode version is 6.3.1 And I use CRToast version 0.0.7 by

  pod 'CRToast', :git => 'https://github.com/cruffenach/CRToast'
Ashton-W commented 9 years ago

Fixed. Thanks