Fixed init order in SingleView iOS projects

This is the same fix that was already applied to the Empty iOS projects.
Merge pull request #625 from fabiogaragiola/master

Fixed initialisation order in SingleView iOS projects
Workable fix for #550: Range expressions behaving badly.
Merge pull request #627 from rojepp/550

Workable fix for #550: Range expressions behaving badly.