popupContentView.popupCloseButton hide after once set ? #587
-
I have one project and i am using chevron style, I want to hide that popupclosebutton on that viewcontroller's button click. Below is the code for set
I have to hide Popupclosebutton when click on "VideoPlayerVC" 's one button.. I tried popupContentView.popupCloseButton.isHidden = true in VideoPlayerVC, but it's not working |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi, just to understand, you want the close button to be visible until some other button is tapped inside the popup content controller, then you want to hide the close button? |
Beta Was this translation helpful? Give feedback.
-
In your popupContentViewController, what about self.popupPresentationContainerViewController.popupContentView.popupCloseButton.isHidden = true |
Beta Was this translation helpful? Give feedback.
-
There is another option, which is probably more elegant. You can place the close button inside your view hierarchy, and then, if you hide that, the button will be hidden as well. See |
Beta Was this translation helpful? Give feedback.
In your popupContentViewController, what about