How can I call a method from other Objective-C class? -


let's say, in a.h file:

-(void)show; 

in a.m file:

-(void)show{  //....  } 

in b.m:

[self show]; 

how can call show b.m? imported a.h guess, has no effect.

in order call method need instance of object on call method. example, if file a.h has class myclassa, call of show this:

myclassa *instancea = [[myclassa alloc] init]; [instancea show]; 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

Error while updating a record in APEX screen -

python - How to get a widget position inside it's layout in Kivy? -