the Sample code for iOS developing