我做了个习惯
UIViewController
用一个
UIImageView
以及
UIButton
在里面。在
tableView viewForFooterInSection
方法返回视图,并正确显示(我可以看到按钮)。但是,我不能按这个按钮。它不会降低/突出显示,并且我的连接IBAction不会启动。
另外,我有一个相机里的物体叫做takenPicture。我的形象是
UIImageView视图
customView的IBOutlet属性。imageView总是空的。
我不知道我做错了什么,但我的代码在
viewForFooterInSection method
:
self.customView = [[CustomView alloc] initWithNibName:@"CustomView" bundle:nil];
customView.myImage.image = self.takenPicture;
return customView.view;