xcode - Images doesnt show on iPad 2 simulator with iOS 9 -
in asset catalog i'have image set name "panda" iphone , ipad devices. 3 images iphone , 2 ipad
when run app on ipad air, ipad air 2, ipad retina, ipad 2 ios 8.4 image show on tap, nothing happens on ipad 2 ios 9!
override func touchesbegan(touches: set<uitouch>, withevent event: uievent?) { /* called when touch begins */ touch in touches { let location = touch.locationinnode(self) let sprite = skspritenode(imagenamed:"panda") print(sprite) sprite.position = location let action = skaction.rotatebyangle(cgfloat(m_pi), duration:1) sprite.runaction(skaction.repeatactionforever(action)) self.addchild(sprite) } }
using version 7.0
here settings
// edit 1.0
apparently bug, not fixed yet
https://forums.developer.apple.com/thread/4268 https://forums.developer.apple.com/message/36854#36854
try (objective c)
uiimage *img = [uiimage imagenamed:@"image"]; sktexture *texturebg = [sktexture texturewithimage:img]; skspritenode *nodebg = [skspritenode spritenodewithtexture:texturebg];
Comments
Post a Comment