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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -