Possible Duplicate:
Utilizing C++ in iOS and Mac OS X applications
I want to make a app with only C++ (with out using Objective C).
If I get the UIScrollView
kind of class, then I can use that for Android.
Can any one guide me on this?
Possible Duplicate:
Utilizing C++ in iOS and Mac OS X applications
I want to make a app with only C++ (with out using Objective C).
If I get the UIScrollView
kind of class, then I can use that for Android.
Can any one guide me on this?
Well no, not really. Since there is no C++ version of UIKit
you will need to do all the UI stuff in Objective-C. There are some bridges for Objective-C++.
You are allowed to mix C++/C with Objective-C.
Well theoretically you can because all of the Objective-C runtime can be accessed using C functions like objMsgSend()
. However, why bother? Just learn Objective-C (or possibly, more relevantly, Objective-C++). There's nothing to stop you from coding most of the application in C++ and just doing the UI in Objective-C.
Who knows, you may come to like it.
Well, I think you can do a little iPhone development in C++. There is Objective-C++, but I don't know if it's supported a lot.
But I don't think you should really use only C++. I propose coding the UI in Objective-C then writing the logic etc. in C++ if you want.
You can write your model on C++. But your controller and view you have to implement on Objective-C. Because UIKit it's 100% Objective-C Framework. I think you can write OpenGL Game in Xcode only with C++ if you want.