Deal with warnings and Static Analyzer recommendations

ios

#1

Could some attention please be paid to the fairly simple warnings that are generated in the iOS source code? Simple deprecation notices and undeclared selectors should be easy to fix.

There are also some recommendations from Xcode’s Static Analyzer which are also easy to implement.

Dealing with these makes the code a better citizen amongst projects.