UIButton not responding after animation

后端 未结 3 1673
萌比男神i
萌比男神i 2021-01-13 11:14

I would prefer first download the project from below link and then continue with question (only 36kb)

Download Link

At start what I have is

3条回答
  •  误落风尘
    2021-01-13 11:36

    I downloaded your project and it seems the translation you're making for self.view. So the actionHiddenButton is not in the frame.Its better to have the controls you want to animate in the separate view.
    If you want to see the problem, after your view get transformed set clipsToBounds to YES. Like

        self.view.transform = translation;
        self.view.clipsToBounds = YES;
    

提交回复
热议问题