Updated to 7.0 deployment target & refactored deprecated methods.

Not sure what I did to change this, is this OK?