welcome to linkAR technical documentation

next previous

Downloading Data


In MainViewController.m we have two variables

@interface MainViewContoller : UITabBarController <CLLocationManagerDelegate>
{
    NSMutableArray *_dataArray;
    CLLocationManager* _locationManager;
}

_locationManager that is used to know user position and _dataArray that we load with PanoramioObject objects in PanoramioConnection method of the same MainViewController.m

/**
 *
 *Call the function that downloads the images.
 *
 */
-(void)PanoramioConnection
{
    _dataArray=[Information PanoramioConnectionWithLocation];
    [self performSelectorOnMainThread:@selector(fetchedData) withObject:nil waitUntilDone:NO];
}

You can see how we use Panoramio API in the PanoramioConnectionWithLocation method of the Information class