diff options
| author | mo khan <mo@mokhan.ca> | 2013-06-12 21:38:16 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-06-12 21:38:16 -0600 |
| commit | 7c301f22bfa9dc05ef20ecbebdf7e14df0c726c1 (patch) | |
| tree | 726ebea10762cafa8e48951fa42122a142b686ee | |
| parent | 770e5967e8da36e90b68745c6ca51a02924e22e5 (diff) | |
rename start timer to start random location timer
| -rw-r--r-- | Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate | bin | 16635 -> 16612 bytes | |||
| -rw-r--r-- | Wobble/ViewController.m | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate b/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate Binary files differindex 95b319f..3d5bfaf 100644 --- a/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate +++ b/Wobble.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/Wobble/ViewController.m b/Wobble/ViewController.m index 0b18b8e..d240307 100644 --- a/Wobble/ViewController.m +++ b/Wobble/ViewController.m @@ -12,7 +12,7 @@ { [super viewDidLoad]; [self.ball addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTouch:)]]; - [self startTimer]; + [self startRandomLocationTimer]; } -(CGPoint)createRandomLocationFor:(CGPoint)currentLocation @@ -30,11 +30,11 @@ { self.ball.center = [self createRandomLocationFor:self.ball.center]; } completion:^(BOOL b) { - [self startTimer]; + [self startRandomLocationTimer]; }]; } -- (void)startTimer +- (void)startRandomLocationTimer { self.timer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(moveBallToRandomLocation) userInfo:nil repeats:NO]; } |
