iOS sample Codes