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

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -