2014-10-16 26 views
0

我創建了一個自定義彈出窗口,其中包含一個UIImageView,我在其中添加了一些元素。 問題是,當我添加一個UITableView它不可滾動(實際上它似乎不可點擊 - RowSelected事件沒有被調用)。UIImageView上的UITableView

customPopup = new UIImageView (new RectangleF (16, 50, 283, 499)); 
customPopup.Image = UIImage.FromFile ("Images/popup.png"); 

customPopupTableView = new UITableView (new RectangleF (0,200, 283, 220)); 
customPopupListSource = new CustomPopupListSource(); 
customPopupTableView.BackgroundColor = UIColor.Clear; 
customPopupTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; 
customPopupTableView.RowHeight = 100; 

customPopupTableView.Source = customPopupListSource; 

customPopup.Add (customPopupTableView); 

任何想法是什麼會導致這種行爲?

回答

1

如果有人跌倒這個問題,有什麼解決它補充說:

customPopup.UserInteractionEnabled = true; 
相關問題