Objective-C random position on screen not working properly ( SpriteKit )
问题 Well I made a randomNumber Class, (for practice and) for calculating a random position on my screen for an object and it works properly, except for it sometimes puts the sprite out of the screen.The x and y coordinates are smaller the screen height and width. but it doesn't show it on the screen. The whole program is just basically randomly placing instances of an object inside the screen. randomNumber.h #import <Foundation/Foundation.h> #import <SpriteKit/SpriteKit.h> @interface randomNumber