Updated to 7.0 deployment target & refactored deprecated methods.

Tested and seems to work fine here. This was one suggested way to fix the "deprecated" warnings I found.