A code sample from the ThinxDrinks iOS app