ios 中在UIview中添加UIview A子控件,之后在UIview A子控件上添加一個(gè)UIbutton控件,UIbutton控件(callBtn)不能響應(yīng)點(diǎn)擊事件[callBtn addTarget:self action:@selector(CallBtnClick) forControlEvents:UIControlEventTouchUpInside]。
我把UIview A子控件的userInteractionEnabled設(shè)置為YES之后也不行,檢查了各個(gè)控件的frame也沒有問題,想要問問各位有沒有遇見過類似的問題?感謝~