1
I created a class to download data from a web service. And I take the following test steps:
I instate the download class in viewDidLoad of Viewcontroller and then run the method, as in the code below:
    - (void)viewDidLoad {
        [super viewDidLoad];
        GDRequestURL* getData = [[GDRequestURL alloc]init];
        [getData getDataFromURL];
        // Aqui instancio um objeto para receber o retorno.
        NSMutableArray* restultado = [[NSMutableArray alloc]init];
        //NEste ponto faço a execução para receber o retorno dos dados.
        restultado = [getData retornaResultado];
  }
But the return is nil.
Without seeing the class
GDRequestURLI can’t tell what’s going on.– André Ribeiro
@Tiagoamara, create a code answer to your own question.
– Lollipop