iOS: Use accessors instead of direct variables
Merge pull request #1046 from lioncash/warnings

iOS: Use accessors instead of direct variables