Domanda

Possible Duplicate:
Is there a way to convert an iOS app to a Mac OS X app?

I want to publish my iPad & iPhone apps on Mac desktop too, is it possible to do, if yes so for that what changes I need to do in my code.

È stato utile?

Soluzione

iOS development is similar to Mac development but not the same: they use different GUI libraries (AppKit vs UIKit).

You could look into an open source solution such as Chameleon, which is UIKit reimplemented for Mac. It has some limitations but is also surprisingly impressive!

Otherwise, as others have said, you'll be rewriting your GUI.

Altri suggerimenti

Well you can't do it directly, since iOS use CocoaTouch and classe like UIButton, UITableView, UIViewController, ... aren't available on OS X.

You can use most of you code which is do not use any of the CocoaTouch components since Cocoa is also Objective-C.

You may think it in MVC direction. Your modal could be reuse, while the view need to redefine. And of cause the controller could be a bit different since it is a bridge between View and Modal.

rckoenes explain in framework aspect. If you think in MVC aspect, I think it could be easier to understand.

I hope it help. Thanks

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top