Fixes in IOSGraphics, + formatting

Most of the changes are formatting.

Changes:
 - Removed wasPaused, added sanity checks using the paused variable instead.
 - Fix for double resume call 
 - Fix for the resume before create call #1159

Please test this as I cannot test this atm. I just made sure it wouldn't cause errors, but there shouldn't be breakages.