Update to compile for ios 7 without warnings

Several enums have been deprecated in newer versions of iOS causing a number of warnings on build. I changed them to the appropriate new names and updated the sample project.