开发者

iPhone/iPad C++ Example [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_JS百科

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

Does anyone know where or how to obtain a C++ example to create iPhone apps? What I am looking for is just using C++ (no objective-C or just the bare essential objective-C) and no interface builder, source only.

Can ayone help me locate such a beast?


You can use C++ and objective-c together, there are some docs in Apple's developer guides. You just need to change the file extensions over from .m to .mm.

You still need to be a registered iPhone developer with Apple to do this however, as you need the SDK to link against.


You can download Carmack's source for Wolfenstein3D for the iphone to see what a program that only uses the minimum of Objective-C necessary to run looks like. He uses C mixed with Objective-C in this case ,but as everyone has mentioned, there's no way to avoid using some Objective-C if you plan on linking against the iPhone SDK.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜