My Custom Button is not getting click in iCarousel iOS?

前端 未结 2 451
粉色の甜心
粉色の甜心 2020-12-18 11:25

In my example I am using iCarousel in which I am trying to expand image on clicking on it? What I have done,after image expands I am adding backButton on right

2条回答
  •  醉话见心
    2020-12-18 12:14

    I also had the same problem but I have resolved with below code.

    view.userInteractionEnabled = YES;
    

    view = your carousel view item

    OR

    [yourButton.superview setUserInteractionEnabled:YES];
    

    hope it helps to others.

    cheers!!!!

提交回复
热议问题