ios - UIImageView in sprite kit -


I am trying to create a robot menu when I press the pause button in the Sprite Kit, I am creating a UIImageView . The problem is that UIImageView is not being shown. how can I do this?

- (zero) doneUttoView: (SKVUI) * see {UIButton * pauseButton = [[UIButton alloc] initWithFrame: CGRactam (0, 0, 40, 40)]; [PauseButton setImage: [UIImage imageNamed: @ "Stop"] forState: UIControlStateNormal]; [PauseButton addTarget: Self-action: @sillector (paused menu) for control events: UIControlEventTouchUpInside]; [Self.view addSubview: pauseButton]; } - (zero) Pause menu: (SKVUE *) See {SKSPRTnode * Menu = [SKSPN.NNNEERPNNEDJJMName: @ "PauseMenu"]; // Menu size already has the image size (by default), there is no need to set it up menu. Position = CGPointMake ((self.size.width - menu.size.width) * 0.5, (self.size.height - menu.size.html) * 0.5); [Self composite: menu]; Self.scene.paused = yes; Self.scene.view.paused = Yes;
  

Use only the spritekit, why use UIImages Do you?

  SKSpriteNode * Menu = [SKSpriteNode spriteNodeWithImageNamed: @ "pausemenu"]; // Menu size already has the image size (by default), there is no need to set it up menu. Position = CGPointMake ((self.size.width - menu.size.width) * 0.5, (self.size.height - menu.size.html) * 0.5); [Self composite: menu]; Self.scene.paused = yes; Self.scene.view.paused = Yes;  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -