Updated code example to work on iOS. More information about information available.