Swift - Extra Argument in call

前端 未结 6 1969
梦毁少年i
梦毁少年i 2020-11-30 09:40

I am trying to call a function declared in ViewController class from DetailViewController class.

When trying to debug the \'Extra Argument in call\" error pops up.<

6条回答
  •  广开言路
    2020-11-30 10:17

    In my case calling non-static function from static function caused this error. Changing function to static fixed the error.

提交回复
热议问题