Got the iOS API to a working state