0
我做了一個自定義的UIViewController
與UIImageView
並在它的UIButton
。在tableView viewForFooterInSection
方法中,我返回了視圖,並且它正確顯示(我可以看到按鈕)。但是,我無法觸摸按鈕。它不會壓低/突出顯示,並且我連接的IBAction不會觸發。iOS tableFooterView:無法使用UIButton?
而且,我已經從所謂的takenPicture相機的對象。 myImage是customView的IBOutlet屬性UIImageView
。 imageView總是空的。
我不知道我在做什麼錯,但這裏是我的代碼是在viewForFooterInSection method
:
self.customView = [[CustomView alloc] initWithNibName:@"CustomView" bundle:nil];
customView.myImage.image = self.takenPicture;
return customView.view;
我創建界面生成器視圖控制器,所以我拖放的ImageView的和的UIButton。我沒有以編程方式創建它或使用框架屬性進行任何操作 – Justin 2010-11-25 23:26:03