You can't declare a variable as the first line of a case section. Just add braces...
switch (pageNumber) {
case 0: {
UIViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"Collection_01ViewController"];
break;
}
case 1: {
UIViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"Collection_01ViewController"];
break;
}
case 2: //etc