Iphone core location
<p>I have an application where I have to check that whether user's mobile location has changed or for 30 consecutive seconds or not?If it has not changed in 30 seconds then user will be navigated to the other view and if it has changed then user will have a message that your mobile location's coordinates have changed in these 30 seconds.</p>

<p>I am using these code but it does nothing ...</p>

<pre><code>-(void)time
{

    for(int i = 0; i&lt;= timeremaining ;i++)
    {
        if (new1 == old)
        {
            if(timeremaining == 1)
            {
                Timer90 *timerview = [[Timer90 alloc]  initWithNibName:@"Timer90" bundle:nil];
                [self.navigationController pushViewController:timerview animated:YES];

            }

        }
        else 
        {
            [NSTimer cancelPreviousPerformRequestsWithTarget:self selector:@selector(time) object:nil];
        }

        timeleft.text = [NSString stringWithFormat:@"%d",timeremaining];

    }
    timeremaining--;

}
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{

    new1 = newLocation;
    old=oldLocation;

    latitude = [[NSString alloc]initWithFormat:@"%g",newLocation.coordinate.latitude];
    longitude = [[NSString alloc]initWithFormat:@"%g",newLocation.coordinate.longitude];
    accuracy = [[NSString alloc] initWithFormat:@"%g",newLocation.horizontalAccuracy];

    if(oldLocation == NULL)
    {
        oldLocation == newLocation;
    }

}
</code></pre>

<p>here timer90 is name of my view.Please help me out friends...Any help will be appreciated.</p>
