Added iOS example code and test.