草庐IT

takePhotoButton

全部标签

ios - cameraOverlayView 上的按钮不起作用

我有以下cameraOverlayView在一定程度上工作。当调用UIImagePickerController时,标准控件不会显示,'TakePhoto'按钮和logo.jpg如中所述显示>ObViewControllerCameraOverlay。该按钮的功能在于按下时它会变蓝,但我的问题是它不会调用该操作(NSLog仅用于测试目的)。谁能看出我可能做错了什么?@implementationObViewControllerCameraOverlay-(id)initWithFrame:(CGRect)frame{if(self=[superinitWithFrame:frame])

ios - swift : Hide button in subview

我试图在触发函数时在subview中隐藏UIButton。我对该层次结构有多个View:vartakePhotoButton:UIButton=UIButton.buttonWithType(UIButtonType.System)asUIButtontakePhotoButton.addTarget(self,action:"takePhoto",forControlEvents:UIControlEvents.TouchUpInside)varsavePhotoButton:UIButton=UIButton.buttonWithType(UIButtonType.System)a