Updated the objective-c code sample for v2
Merge pull request #28 from thibaudrobelain/objectivec-sample

Updated the objective-c code sample for v2