iOS-ification.

Fixed Lua loop-requirement errors and minor iOS UI fixes.