yes starting from fresh...i want to move a ball by pressing the button...
-(void) onTimer{
ball.center = CGPointMake(ball.center.x+pos.x,ball.center.y+pos. y);
if(ball.center.x > 320 || ball.center.x < 0)
pos.x = -pos.x;
if(ball.center.y > 460 || ball.center.y < 0)
pos.y = -pos.y;
}
- (void)viewDidLoad
{
pos=CGPointMake(14.0, 7.0);
}
now i want that when the stimulator opens the ball remains still and after pressing the start button it should move and then stop after pressing stop..
may be i have to do something inside
- (IBAction)buttonPressed

id)sender..
no idea..