2014-10-16 65 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; 
相关问题