Button action not working in iphone?

后端 未结 4 1795
粉色の甜心
粉色の甜心 2021-01-27 02:33

I have an IPhone application in which i am adding a custom view inspite of a navigation bar view.i am hiding that custom view in the normal case and unhide it whenever needed.no

4条回答
  •  时光取名叫无心
    2021-01-27 02:48

    I dont know about your whole code why you are hiding the view but what i want to say that add your UIButton to your self.view instead of self.curtainsView.
    Just make a little change in your code.

    [self.view addSubview:curtainsView];
    [self.view addSubview:scroll];
    

提交回复
热议问题