How can i perform a JSON parsing in background thread in viewDidLoad and move it to main thread when clicks on a button. Now i tried
[self performSelectorInBackground:@selector(parseData) withObject:nil];
-(void)parseData {
MSJsonParser *parser = [[MSJsonParser alloc]initWithParserType:kCountriesParsing];
parser._parserSource = self;
[parser requestParsingWithUrl:COUNTRIES_URL ];
}
But i dont know how to change this background process to main thread. please help me