swift - Objective-C method 'imagePickerController:didFinishPickingMediaWithInfo:' -
objective-c method 'imagepickercontroller:didfinishpickingmediawithinfo:' provided method 'imagepickercontroller(:didfinishpickingmediawithinfo:)' conflicts optional requirement method 'imagepickercontroller(:didfinishpickingmediawithinfo:)' in protocol 'uiimagepickercontrollerdelegate'
code below. what's wrong? using xcode 6.4 beta.
func imagepickercontroller(picker: uiimagepickercontroller!, didfinishpickingmediawithinfo info:nsdictionary!)
i had error after upgrading swift 2.0. easy fix, retype method, auto-complete guide change of parameter types. should be:
func imagepickercontroller(picker: uiimagepickercontroller, didfinishpickingmediawithinfo: [string: anyobject]) {
Comments
Post a Comment