作者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