iOS: Use accessors instead of direct variables