IOS Code  Collect