Objective-c – Xcode Instance method not found

instanceobjective cxcode

sometimes I get the Warning for example :

Instance method '-PushBottom' not found (return type defaults to 'id')

because the function PushBottom is under this function (where it called) declared.

For fixing this warning I put the function PushBottom about this function (where it called).

Is there any way to get fix this warning without put function PushBottom about the function where it called?

Best Answer

you could declare the push button in the .h file

-(void)PushButton;

or -(IBAction)PushButton:(id)sender;

depending on what the function is. just declare it in the .h file above the @end and u should be good to go