update ios exmaple