How to use delegate pattern on iPhone

前端 未结 1 1995
故里飘歌
故里飘歌 2021-01-24 17:26

I have some questions about using delegate patten on iPhone.

This is code using delegate patten. This code works.

SecondViewController *secondViewContro         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 17:49

    Can you tell us which class is creating the GoogleDocsViewController? Check that class' header (.h file) and see if it implements the GoogleDocsViewControllerDelegate.

    Basically the delegate is the object which will listen to interesting events from the GoogleDocsViewController and it should implement the protocol mentioned so it "knows" which actions to perform when the events are fired.

    0 讨论(0)
提交回复
热议问题