Changing the image of a CCSprite
CCTexture *tex = [CCTexture textureWithFile:fileName]; self.texture = tex;
CCTexture *tex = [CCTexture textureWithFile:fileName]; self.texture = tex;
The lure of multi-platform builds are a nightmare in disguise. Any web designer will tell you horror stories of trying to juggle IE with Firefox with Chrome with whatever at the same time. You will not suddenly earn more sales because you were able to launch on Android/iOS/etc on day one. More than likely, your … Read more
I just had this error today, the problem for me was simple, it was because the adUnitID is basically still new. I had to wait more than 2 hours after creating the adUnitID in order for the ads to be served. If you have this error, and some of your adUnitIDs serve ads and some … Read more
Another rather simple thing to check is that you did not accidentally #import a .m file instead of a .h header file. Happened to me.
I have had the same issue when making multiple targets. My issue was that I had to change my Product Name under Packaging. In each target project > Build Settings > Packaging -> Product Name
You can use the locationInView: method on UIGestureRecognizer. If you pass nil for the view, this method will return the location of the touch in the window. – (void)handleTap:(UITapGestureRecognizer *)tapRecognizer { CGPoint touchPoint = [tapRecognizer locationInView: _tileMap] } There is also a helpful delegate method gestureRecognizer:shouldReceiveTouch:. Just make sure to implement and set your tap … Read more