[Solved] Expected ‘:’ Lexical or Preprocessor error


It looks like you are missing a colon, a couple of dots, and a couple of semicolons:

[self.ScrollView setScrollEnabled:YES];
//   ^                           ^    ^
[self.ScrollView setContentSize:CGSizeMake(320, 900)];
//   ^                                                ^

You need to watch out for these small elements of the syntax – Objective C does not tolerate deviations. The worst part about syntax errors is that you often get a report pointing to a wrong line.

1

solved Expected ‘:’ Lexical or Preprocessor error