Implementing Delegate Pattern in Objective-C

前端 未结 6 460
谎友^
谎友^ 2020-12-18 09:48

I am building a class that handles NSURLConnection requests. To allow other classes to use this class, I would like to allow the main class to call a delegate when connecti

6条回答
  •  情歌与酒
    2020-12-18 10:21

    Could it be the semi colon at the end of the method name in the delegate (bottom code sample on the far right)? If the delegate is set and the -connectionDidFinishLoading: method is being called then I can't see anything wrong

提交回复
热议问题