What is the appropriate cross-platform methodology for iOS and Mac OS X?

There seem to be many answers for cross-platform platforms for devices (iPhone + Android) and cross-platform frameworks for desktops (Mac + Win + Linux). This is another question regarding the appropriate structure, methodology, template application, tutorial, or just useful tips for developing your own applications (and not just web applications), which are cross-platform portable between the device’s OS and the desktop OS.

I want to write an application that can work both on my iPhone (or iPad), and compiled to run natively on Mac OS X (and not just in Simulator). I am ready to live only with basic interface elements that are common to both platforms (only 1 window, common buttons, text fields, etc.).

What is the best methodology for creating a couple of applications with a minimal number of #ifdef code overrides and other codes that will work on my iPhone and initially on my MacBook?

+3
source share
2 answers

, . AppKit UIKit - . UIView NSView . , -.

, Mac iOS . Core Animation CALayers - , Mac OS X iOS. Core Plot, Mac iOS, (, UIView ), .

. OpenGL ES , , , Mac. , , OpenGL ES OpenGL. Core Animation, , , , .

, , "" Model-View-Controller. , . , SQLite Core Data , , Mac iOS .

Mac iOS ( iOS) . - . , , , - , - , .

+3

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


All Articles