Updated the objective-c code sample for v2