How to code sharing between Android and iOS

后端 未结 6 1017
故里飘歌
故里飘歌 2020-12-12 13:51

I\'m moving away from strict Android development and wanting to create iPhone applications. My understanding is that I can code the backend of iOS applications in C/C++ and

6条回答
  •  鱼传尺愫
    2020-12-12 14:17

    Writing a shared code base is really practical in this situation. There is some overhead to setting up and keeping it organized, but the major benefits are these 1) reduce the amount of code by sharing common functionality 2) Sharing bug fixes to the common code base. I'm currently aware of two routes that I'm considering for a project - use the native c/c++ (gains in speed at the expense of losing garbage collection and setting targets per processor) or use monodroid/monotouch which provide c# bindings for each os's platform functionality (I'm uncertain of how mature this is.)

    If I was writing a game using 3d I'd definitely use approach #1.

提交回复
热议问题