开发者

Can i write Cocoa Touch[iPhone] applications in C++ language

开发者 https://www.devze.com 2023-01-24 16:36 出处:网络
1开发者_如何学JAVA) Can i write iPhone applications in pure C++ language, i know that we can use Objective-C++, i just want to know if we can also write it in pure C++ language.

1开发者_如何学JAVA) Can i write iPhone applications in pure C++ language, i know that we can use Objective-C++, i just want to know if we can also write it in pure C++ language.

2) while creating MAC OX application inXCode, we have an option to create C/C++ application, will the same options work for me to write iPhone applications?


You cannot use pure C++ only - at least a portion of the UI must be written in Objective C/Objective C++, as all applications must provide a delegate and a main view.

Once you have the application running and do not wish to use the UI libraries (such as a game), you can proceed to use Core Graphics or OpenGL to handle screen drawing. You will need a small Objective C/C++ layer to handle touch events.

0

精彩评论

暂无评论...
验证码 换一张
取 消