ios code refine