What are the limitations of running C ++ on an iPhone?

I like C ++ a lot and, frankly, the Objective-C C super-suite is more like a “super failure." Can an iPhone application be written in pure C ++? Are there parts of the API that are not available for C ++?

+3
source share
4 answers

You cannot code only in C ++. For one class, the UIApplicationDelegate that each application must inherit is Objective-C.

However, nothing prevents you from encoding anything that is not related to the framework in Objective-C ++. You still have to use Objective-C calls for UIKit and other frameworks, but all your application logic can be in C ++.

Objective-C ++ Objective-C :

Objective-C ++ ++ Objective-C, Objective-C ++. , Objective-C ++ , Objective-C . ; ++ Objective-C Objective-C ++. , . , Objective-C ++- , , , ++, Objective-C. Objective-C, . " ".

+5

API- Carbon iPhone, ++. , API, Objective-C (, UIKit). C/++- Objective-C, iPhone. ++ .

Objective-C ++ , bona fide ++ Objective-C, . , iPhone-, .

+2

, objective-c , ++. , sio2 ( iphone) - ++, , , , objective-c.

, objective-c? ++ , Obj-C OO, ++.

+1

GUI Obj-C (Obj-++).

++ . , , Obj-C.

+1

Source: https://habr.com/ru/post/1723384/


All Articles