How to retrive values of variable defined in one method into other objective c
<p>I have a method </p>

<pre><code>- (void)locationUpdate:(CLLocation *)location {

self.locationLatitude = [NSString stringWithFormat:@"%f", location.coordinate.latitude] ;
self.locationLongitude = [NSString stringWithFormat:@"%f", location.coordinate.longitude ];   
</code></pre>

<p>Now i want to get values of self.locationLatitude and self.locationLongitude into other method of same class But i dont want methodOne to call in locationUpdate:(CLLocation *)location method </p>

<pre><code>-(void)methodOne{
NSLog(%@,Location.Latitude);//it should show coordinate.

}
</code></pre>

<p>Other issue is where should i call methodOne? i dont want to call it in locationUpdate method. i want to call it in viewDidLoad method. but when i call it in viewDidLoad nslog shows null</p>
