任何人都可以解释的意义someViewController.delegate = self和self.delegate?他们在哪里帮助我们?
someViewController.delegate = self
self.delegate
cocoa delegates protocols delegation objective-c
如果你觉得这太基础和通用,请不要管我.但我希望回答会像我一样受益于很多新手.
为什么我们将代表设置为自我?
谢谢, Taimur
iphone objective-c uiapplicationdelegate
objective-c ×2
cocoa ×1
delegates ×1
delegation ×1
iphone ×1
protocols ×1
uiapplicationdelegate ×1