objective c - Call a method of MasterViewController on DetailViewController -


i'm making small ipad app using splitviewcontroller , want call method masterviewcontroller on detailviewcontroller method doesn't show when write following code call it:

masterviewcontroller *master = [[masterviewcontroller alloc]init]; [master pushmoduletitle]; 

here method in masterviewcontroller.m

-(void)pushmoduletitle:(nsstring*)moduletitile {     nsstring * moduletitileobject = moduletitile;     [self.moduletitlestack addobject:moduletitileobject]; } 

not sure why getting issue! how call e method right?

your function

   -(void)pushmoduletitle:(double)moduletitile 

takes 1 parameter, calling no parameters. no function exists takes 0 parameters! either need change call

  [master pushmoduletitle:5.0]; // example 

or add

  -(void)pushmoduletitle  

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -