在Windows 7上为iPad/iPhone编程 [英] Programming for ipad/iphone on Windows 7

查看:76
本文介绍了在Windows 7上为iPad/iPhone编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在Windows 7上为ipad/iphone编程吗?如果可以的话,请给我发送程序链接以及更多

can I Program for ipad/iphone onn windows 7? and if I can please send me the link to the program and more

推荐答案

对于iPhone/Mac开发,您需要 X代码.

http://developer.apple.com/technologies/tools/

我认为Windows操作系统不支持 X代码.有关更多信息,请参考以下链接.

http://forums.macrumors.com/showthread.php?t=537583

http://www.iphonedevsdk. com/forum/iphone-sdk-tools-utilities/63583-iphone-app-development-windows-7-platfrom.html
For IPhone/Mac development you require X-Code.

http://developer.apple.com/technologies/tools/

I do not think X-Code is supported on Windows Operating System. For more information you may refer below links.

http://forums.macrumors.com/showthread.php?t=537583

http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/63583-iphone-app-development-windows-7-platfrom.html


我知道的唯一方法是基于CLR:具有MonobjC的Mono,它是与Objective-C的桥梁,并封装了Mac API(如Cocoa,WebKit等).
我在运行良好的Mac OS X上进行了尝试,但它也提供了通往iOS的桥梁.

我必须警告您:这一点都不容易,需要相当多的一般编程经验来掌握所有这些.

现在(看……)我应该提供所有链接吗?太多了让我们从主要内容开始:

http://en.wikipedia.org/wiki/Common_Language_Runtime [ http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ],
http://www.mono-project.com/Main_Page [ http://en.wikipedia.org/wiki/Objective-C [ http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ [ ^ ];

http://en.wikipedia.org/wiki/Monobjc [ http://www.monobjc.net/ [ ^ ];

http://en.wikipedia.org/wiki/IOS [ http://www.apple.com/ios/ [ http://en.wikipedia.org/wiki/Cocoa_%28API%29 [ ^ ],
http://developer.apple.com/technologies/mac/cocoa.html [ ^ ].

这只是顶级参考.您将需要掌握大量的每个主题.您将需要浏览有关每个主题的编程文档.而且,在MonobjC级别上没有太多的文档.因此,您将需要在Apple编程指南中找到大多数文档,然后在MonobjC中找到匹配的类和成员.这也需要对机制有很好的了解.

另一个问题是您几乎无法在Windows上对其进行调试.因此,该方法将是在Windows上开发和调试非UI组件. MonobjC不仅是一个库,还包括一个库.它也是一个运行时系统,您可以在Mac OS X或iOS上运行. UI调试需要MonoDevelop,请参见:
http://en.wikipedia.org/wiki/MonoDevelop [ http://monodevelop.com/ [ ^ ].

使用MonobjC,您可以安装特殊的MonoDevelop插件以允许进行可视化开发和UI调试.我只在Mac OS X上使用它,而不在Windows上使用它,所以我不是100%确信可以做到.您不能使用Visual Studio做到这一点.但是,您可以不使用任何设计器"来开发UI项目.这类项目将在Visual Studio上成功编译,并在您的iOS 上重新运行,而无需重新编译.如果您真的很小心,可以这样做.在某些情况下,您将需要解决.NET和Mono之间的不兼容性.

我还想补充一点,这种交叉开发要比Windows-Linux跨平台开发困难一个数量级.与Linux相比,Apple确实对非Apple开发人员怀有敌意. :-)

想要尝试吗? :-)

祝你好运,
—SA
The only way I know is based on CLR: Mono with MonobjC which is a bridge to Objective-C and encapsulates Mac APIs like Cocoa, WebKit, etc.
I tried it with Mac OS X which worked very well, but it also provides a bridge to iOS.

I must warn you: it is not easy at all, need quite a good deal of general programming experience to master all that.

Now (sight…) am I supposed to provide all the links? There are too many. Let''s start with main things:

http://en.wikipedia.org/wiki/Common_Language_Runtime[^],
http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^];

http://en.wikipedia.org/wiki/Objective-C[^],
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/[^];

http://en.wikipedia.org/wiki/Monobjc[^],
http://www.monobjc.net/[^];

http://en.wikipedia.org/wiki/IOS[^],
http://www.apple.com/ios/[^];

http://en.wikipedia.org/wiki/Cocoa_%28API%29[^],
http://developer.apple.com/technologies/mac/cocoa.html[^].

This is only top-level references. You will need to master a big deal of each topic. You will need to browse programming documentation on each topic; moreover, there is no much documentation on MonobjC level; so you will need to find most of documentation in Apple programming guides and then find matching classes and members in MonobjC; this also requires good understanding of mechanisms.

Another problem is that you hardly debug it all on Windows. So, the approach will be developing and debugging the non-UI components on Windows. The MonobjC is not just a library; it is also a run-time system which you can run on Mac OS X or iOS. UI debugging requires MonoDevelop, see:
http://en.wikipedia.org/wiki/MonoDevelop[^],
http://monodevelop.com/[^].

With MonobjC, you can install special MonoDevelop plug-ins to allow visual development and UI debugging. I used it only on Mac OS X, not on Windows, so I''m not 100% sure it can be done. You cannot do it with Visual Studio. However, you can develop a UI project not using any "Designer"; this kind of project will be successfully compiled on Visual Studio and run on your iOS without recompilation. You can do it if you are really careful. In certain situations, you will need to address incompatibilities between .NET and Mono.

I also want to add, that this kind of cross development more difficult than, say, Windows-Linux cross-platform development, perhaps by an order of magnitude. Compared to Linux, Apple is really hostile to non-Apple developers. :-)

Care to try? :-)

Good luck,
—SA


这篇关于在Windows 7上为iPad/iPhone编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆