作者forever215 ()
看板MacDev
标题[问题] UIView delegate 问题
时间Wed Dec 26 11:21:57 2012
我在UIScrollView
新增一个subview ,同样设定
Aview.delegate = Controller
为何不能读取资料?
若是ViewController 本身设定就可以。
关系是这样的
Tabview
UIView controller
ScrollView
Add subview AUIView
请各位解答,谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 223.139.224.172
1F:推 johnlinvc:IBOutlet != delegate 12/26 13:48
2F:推 rick1014:你的controller有implement该delegate的protocol吗? 12/27 01:00
4F:→ scentsome:然後在要接收资料的class实作提供者 protocol 的 method 12/27 07:49
5F:→ forever215:我知道原因了..是要设定为 self.delegate.. 12/28 23:16