Wednesday, February 29, 2012

Not comfortable with result of UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)

Found that if I use the following method to check if the device orientation has changed, the result is not quite accurate.UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)Specially when you lay the iPhone/iPad down flat on the table, then slightly lift one side up and down. When you reached certain angle the result will change, specially bad with the iPad.After a few trial, I found the "self.view.bounds.size" is actually more accurate in indicating whether it's in landscape of portrait mode, and have to combine the two.Any one has similar experience or better id...

Sunday, February 26, 2012

Tutorial - How to setup MathJax locally

[Update 02/03/2012] Please also have a look at this post - Tutorial - How to setup MathJax locally - "slim" editionIn this post last year, I talked about how to get MathJax working in your iPhone project. However that requires internet connection as the JavaScript in MathJax needs to connect back to their web site to get all the fonts and details, otherwise all those math formulas won't be displayed properly.In this post I am going to talk about how I setup my iPhone/iPad project to use MathJax...

Friday, February 17, 2012

Oh, I didn't know that there are 2 iPhone simulators in Xcode?

I think most of you might already know this. It's a bit embarrassing, but I have to admit that I just found out about this a few days ago by accident...If you have been following my blog you might have noticed all my screen dumps were like the one below, using the iPhone simulator in Xcode - which surely looks like a nice iPhone 4 device.I then found that by clicking on the "Hardware -> Device" option in "iOS simulator", as shown below, there's a "iPhone (Retina)" one which I never seen before......

Tuesday, February 14, 2012

Universal project is the way to go?

As you might be aware, Apple sold more iPad in last 3 months of 2011 than HP (see reports here and here as example), this sort of pushed me to not only targeting iPhone, but also more into Universal projects - targeting both iPhone and iPad.As I still don't quite like NIB files, so although Xcode automatically creates 2 separate NIB files I still like to "parameterise" the display section, and setup different parameters accordingly depending on the platform it's running on.I also moved back to the...

Thursday, February 9, 2012

Someone copied my game!

Last September, I wrote in this post about someone who copied the "ABC123" open source game, changed the background colour plus a few minor stuffs, and then publish the whole game as his. Today, I found it happened to me too!!!I first noticed this "Dice in Cup" game a few days ago, as below, it's published on 21st Dec 2011.I played with it for a while and noticed strong similarity with my "Dice in Cup" open source game published on 15th November 2011. If you look at the screen dump below and compare...

Friday, February 3, 2012

A few more things about Nextpeer

Spent quite some time on Nextpeer in past 2 weeks, and also created quite a few posts about it recently. Planning to move on to other topics soon, so would like to summarise a few more things as below. Will definitely talk about it again if there's any new interesting development in this area.Coins handlingStill not very clear about coins handling. Like to have clear flow from developer's point of view, from users' point of view. What's the selling/attracting point for each party?, why would users...

Response from Shai/Nextpeer

Thanks to Shai/Nextpeer who answered a few questions I raised before, please see below.==================================Hi,Regarding your further questions in the post:2) Like to see example of setting up Netxpeer with non-Cocos2D projects- We will upload a new video and tutorial next week about how to integrate a simple Objective-C game.3) How is the gold coins been handled? What if I run out of coins, how do I get more? Is that through in-app purchase or some other methods?How is the profit distributed between Nextpeer and the developer?The gold coins are separated for each game...

Page 1 of 66712345Next