Most likely self.tickets
is not initialised. Set:
self.tickets = [NSMutableArray array];
When you create the controller.
Aside: your method ticket:failure:ticket:
isn't very clear and would be better as getTicketWithId:success:failure:
.
Another aside: be careful with starting network connections in a loop as you could flood the network. You may want to limit the concurrent connection by editing the queue of the http client.