iOS code for studying