iOS: fixed compiler warning about deprecated methods.

As you'll see i've replaced both offending method call with new appropriate ones.

Note that `presentViewController` having a `completion` handler could be used to tweak the scan while opening issue . No so sure it's worth the trouble though.