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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -