Code samples for the basics of iOS6-7