ios - NSURLConnection Delegate In A Different Class -


is possible set delegate of nsurlconnection different class? in class a have following method:

- (void) foo {      nsstring *url = [@"http://foo.bar"];     nsurlrequest *request = [nsurlrequest requestwithurl:[nsurl urlwithstring:url]];     [[nsurlconnection alloc] initwithrequest:request delegate:self.classb]; } 

the delegate methods i've implemented in class b never called, though.


Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -