クラス間でのイベントのやり取りするときに必要になるのがdelegate。javaで言うとlistenerかと思うが、実装する手順で
が参考になった。いろいろ、つかうので、めもめも。 また、複数の、デリゲートを受け取るクラスの記述は
1 2 3 4 |
[java] @interface QuesViewController : UIViewController<GADBannerViewDelegate,DrawLineDelegate>{ GADBannerView *bannerView_; [/java] |
<>をつなげるのではなく、<>に複数記述する。
Itactually a cool and helpful piece of info. I am glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.