Wednesday 15 July 2015

objective c - How to make sure UIView is on top of SKScene? -


Is any UIView always on top of SKScene to ensure any objective code when call is done? I'm calling this UIView from a SKScene during the game of your sprintkit game by clicking on a button. The tint is active but this UIView (option screen) image is not above all SKScene images.

To adjust the order of the UI elements on zAxis, .zPosition Should try to use.

So you can use any number. You can use .zPosition = 1 or .zPosition = 9876.26 . The only important thing is to separate the numbers if the number is small, the element is behind / below the other person if the number is large, then it is at the top.

Hope to answer your question :)


No comments:

Post a Comment