iOS Developer by profession. Interested in UX Design, AI and Robotics. I also enjoy watching random YouTube videos, reading, going out for walks and doing some graphic design on the side.
I have a customised video view and a fullscreen button in it. Both enter and exit fullscreen methods are linked to the outlet of the same fullscreen button. I toggle the tag of this button to 0 and 1 and according to its tag, I will decide whether to enter or exit the fullscreen. Is this an unreliable approach? If yes, then can you suggest a better one?
iOS Developer by profession. Interested in UX Design, AI and Robotics. I also enjoy watching random YouTube videos, reading, going out for walks and doing some graphic design on the side.
Can you elaborate more on that? What exactly are you using tag for in your UIView?
I have a customised video view and a fullscreen button in it. Both enter and exit fullscreen methods are linked to the outlet of the same fullscreen button. I toggle the tag of this button to 0 and 1 and according to its tag, I will decide whether to enter or exit the fullscreen. Is this an unreliable approach? If yes, then can you suggest a better one?
Why not a Bool var like isFullScreen in your view controller? Seems more clear to me, you toggle the variable and you know what you have to do
Thanks for the opinions :)