Answers for "objective c switch case"

2

objective c switch case docs

enum {
    kFirstScrollView = 0,
    kSecondScrollView = 1
};

switch (scrollView.tag) {
    case kFirstScrollView: {
      // do stuff
    }
    case kSecondScrollView: {
      // do stuff
    }
}
Posted by: Guest on October-12-2021

Code answers related to "Objective-C"

Browse Popular Code Answers by Language