numValue += val;
NSString *numString = [NSString stringWithFormat:@"%i", numValue];
GameBGiPad1.png - For iPhone
GameBGiPad1-hd.png - For iPhone HD
GameBGiPad1-ipad.png - For iPad
GameBGiPad1-ipadhd.png - For iPad HD
Want a nice, easy to read and implement description of blend modes in Cocos2D? Well you won’t get it here on Tokeru, but you will on Nial Giacomelli’s site. Check it out. http://nial.me/2012/06/porting-photoshop-blendmodes-to-cocos2d/
Right had to do a bit of research for this one, here is the fix I found that works from Natalie London
In your APP DELEGATE.m
In your ROOTVIEWCONTROLLER.m //will only be compiled for IOS6
FOR LANDSCAPE USE THIS
FOR PORTRAIT USE THIS
The page I got this from is
Easy Peasy, check out this link for how to and al available types.
In your Target Info set the Targeted Device Family to “iPhone/iPad”
In your appDelegate.m put this bit of code
To reference it in your other classes do this
in class.m in your init method
And you can use it in your class thusly
Right, so I do a lot of animation in my apps, so here is the most simple creation of it
In my latest app Loopy Tunes, I needed to add multitouch functionality to a keyboard. I use Cocos2D, so if you’re like me, then just do the following.
In your delegate.m class, add this line
right after this one.
Then in your class.m where you are testing for multitouch, up in your init method, add the following line
And then add your touch method somewhere down under the init method, just update the values of the areaToCheck
When preparing my universal app for iTunes I was having trouble with getting the icon.png file the right size. When I saved a 57×57 pixel icon iTunes complained about needing a 72×72 pixel icon for the iPad an vice versa for the iPhone. So I googled and found there are a couple of things you need to do.
Create all the icons listed in here under Table 3: Universal apps icon requirements. Then add them to your project in xcode. (you know, drag em into your resources folder)
On that same page down the bottom are the instructions for how to enter these to your info.plist. Follow them, or just add this to your info.plist if it isn’t in there already. (I prefer to edit the info.plist myself in textEdit) If you are using a cocos project, especially 0.99.5 or newer, it should already be in there.
If you have the following in your info.plist,
replace it with
A good way to get people to review your app easily is to put a link to the review page in your app. Easy to do, just add this
and replace “a-fine-musician” with your app name, and “406573790” with your app id.