I know how to call a method when a button pressed.

but, My problem is when a user keep pressing a button it has to call one method 

-(void)keeppressed
{
} 

where as it has to call another method called 

-(void)justpressed
{
}

when user just taps the button 

is there any solution?