How do i put button detection in an if statement, here is my code where IBActionA is a button...
Code:
- (IBAction)A: (id)sender {
if (phase == 1)
{
if (pool > 0)
armiesA++;
pool--;
}
if (phase == 2)
{
if ( //button pressed// )
//do stuff//
}
}
Last edited by a moderator: