ios - How to call protocol from another viewcontroller? -
i want call protocol
viewcontroller
viewcontroller
. got error below:
type 'hello' not conform protocol 'loginpagevcdelegate'
here protocol in loginpagevc
protocol loginpagevcdelegate { func onloginfacebook(loginviewcontroller : loginpagevc!) }
and here how call
class hello : uiviewcontroller, loginpagevcdelegate { .... }
what did wrong? how can fix it?
you should not call here instead implement it:
class hello : uiviewcontroller, loginpagevcdelegate { func onloginfacebook(loginviewcontroller: loginpagevc!) { } }
Comments
Post a Comment