How to convert code to iOS?

Hi,

In these days, I’m trying to make a simple game using cocos2d-x.
At first, Android and later convert code to iOS for iphone something like that…

Is it a ideal way to think first android making a game?

If you guys have an another thing, plz teach me what is the best way to develope?
any idea is ok…

thanks in advance.

If you use c++ or lua, the best way is to write game logics in Xcode first, build iOS version ,then port to android.
If you use javascript, the best way is to develop javascript game in Chrome desktop with cocos2d-html5, then migrate to cocos2d-x JSB ios and android.