Can I write Cocoa Touch [iPhone] applications in C ++

1) Can I write iPhone applications in pure C ++, I know that we can use Objective-C ++, I just want to know if we can also write it in pure C ++.

2) when creating a MAC OX inXCode application, we have the opportunity to create a C / C ++ application, will the same parameters work for iPhone applications?

-one
source share
1 answer

You cannot use pure C ++ only - at least part of the user interface must be written in Objective-C / Objective-C ++, since all applications must provide a delegate and a basic view.

Once your application is running and you do not want to use user interface libraries (such as a game), you can use Core Graphics or OpenGL to process the drawing. To handle touch events, you will need a small Objective C / C ++ object.

+2
source

All Articles