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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -