Some iOS helper functions/classes