Is it possible to make an iPhone app using only C ++?

Possible duplicate:
Using C ++ in iOS and Mac OS X Applications

I want to create an application only with C ++ (without using Objective-C).

If I get the UIScrollView class, then I can use it for Android.

Can someone help me with this?

+3
source share
5 answers

Well no, not really. Since there is no C ++ UIKit , you will need to make all the contents of the user interface in Objective-C. There are bridges for Objective-C ++.

You are allowed to mix C ++ / C with Objective-C.

+5
source

You can theoretically well, because everything from the Objective-C runtime can be obtained using C functions such as objMsgSend() . But why bother? Just learn Objective-C (or, perhaps more relevantly, Objective-C ++). You have nothing to interfere with the coding of most of your application in C ++ and just execute the user interface in Objective-C.

Who knows, you may like it.

+1
source

Well, I think you can develop the iPhone a bit in C ++. There is Objective-C ++, but I don't know if it supported a lot.

But I do not think that you really should use only C ++. I suggest coding an interface in Objective-C, and then writing logic, etc. In C ++, if you want.

0
source

There are some frameworks (e.g. crossmob and libnui ) that allow you to write simple code in old C ++ without using Objective-C. But, unfortunately, there is no way to directly use the Apple SDK with C ++.

0
source

You can write your model in C ++. But your controller and view you need to implement on Objective-C. Because UIKit is a 100% Objective-C Framework. I think you can only write OpenGL Game in Xcode with C ++ if you want.

0
source

All Articles