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
Post a Comment