如果单点触控可用,为什么还要使用 xcode?

发布于 2024-10-13 06:18:50 字数 98 浏览 6 评论 0原文

如果单点触摸可用那么为什么我们应该使用mac环境(sdk,xcode+Interface Builder)?

与 xcode 相比,monotouch 的缺点是什么?

if mono touch is available than why we should use mac environment(sdk,xcode+Interface Builder)?

what are the disadvantage of monotouch compare to xcode?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

梅窗月明清似水 2024-10-20 06:18:50

我总是更喜欢使用与我正在开发的平台在哲学上最一致的语言。

也就是说,整个平台所围绕的框架都是用 Objective-C 编写的。因此,如果您自己在 Objective-C 中工作了一段时间,您就会理解为什么事物是这样构建的,并且还可以预测可能存在的调用或行为。

正如我不会使用 Silverlight 之外的任何语言进行 Windows Phone 7 开发一样,我也不会使用 Objective-C 之外的任何语言对 iPhone 进行编程,以便充分利用该平台。新语言?这是一个好处,因为无论如何人们都应该时不时地学习新语言。而且它并不会为您节省很多时间来使用您已经了解的语言,因为您的大部分时间将花在学习框架上(MonoTouch 可以让您调用该框架)。

I always prefer working in the language that is most philosophically aligned with the platform I am developing for.

That is to say, the frameworks the whole platform is built around were written for and in Objective-C. As such, if you are working in Objective-C yourself for a while you understand why things are built the way they are, and can also anticipate calls that might exist or behaviors.

Just as I would not develop for Windows Phone 7 in anything but Silverlight, I would not program the iPhone in anything but Objective-C in order to get the most out of the platform. New language? That's a benefit as people should learn new languages now and then anyway. And it's not like it saves you that much time to use a language you already know since a large majority of your time will be spent learning the frameworks (which MonoTouch lets you call into).

烟柳画桥 2024-10-20 06:18:50

我觉得这也需要 MT 阵营的回答。

既然可以吃肉,为什么还要吃鱼呢?如果英语能听懂,为什么还要讲德语?如果有福克斯,为什么还要看 CNN?如果有民主党,为什么还要投票给共和党呢?为什么...?等等。

这是你的选择!如果您已经使用 C# 很长时间并且希望在 iOS 上快速获得结果,请使用 MonoTouch。特别是如果您有一组可以重用的 API 或方法,MT 就是您的最佳选择。如果你想学习一门新语言(ObjC),那就去吧。即使您最终使用 MT,了解 ObjC 在某种程度上也是至关重要的,因为它可以帮助您理解事物为何如此运作。

I feel like this needs an answer from the MT camp, too.

Why eat fish, if you can have meat? Why speak German, if English is understood? Why watch CNN if there is FOX? Why vote vote for the Republicans if there are the Democrats? Why...? And so on.

It is your choice! If you have worked with C# for a long time and want to have quick results on iOS, go MonoTouch. Especially if you have a collection of APIs or methods you can reuse, MT is the way to go. If you want to learn a new language (ObjC), go for it. Even if you use MT in the end, knowing ObjC is somehow crucial because it helps you understand why things work as they do.

想你只要分分秒秒 2024-10-20 06:18:50

你好,这是我个人的观点,

我也在.Net世界上呆了一段时间,当iPhone推出创建本机应用程序的能力时,它引起了我的全部注意力,我真的尝试学习objc,我拿了两本书并开始尝试我尝试了一个月,然后我离开了 iPhone 编程,因为你必须制作大量的东西,而 .NET 上的东西比 .NET 差了很多,例如 GC。

当 Miguel de Icaza 推出 MonoTouch 时,我尝试了一下,意识到我之前完成的大部分代码都是完全可用的(我一直试图将 ui 代码与业务代码分开),这确实是 .NET 在 iPhone 上的要点,将大部分已完成的业务逻辑带到设备上。

另外,在 objc 上,您不会找到像 LINQ 或 var 关键字之类的东西,只需点击几下即可在 MonoTouch 上使用 Web 服务等。

如果您想瞄准 Android 平台,还有 MonoDroid (monodroid.net),它将于今年晚些时候推出稳定版本,您现在可以在测试版状态下尝试一下。另外,如果您想以 Mac OSX 为目标,可以使用 MonoMac。因此,您可以在所有这 3 个平台(以及 mono/.net 支持的平台)之间共享类库,无需麻烦,更不用说它也可以在 Windows 上运行,反之亦然(如果可能)(也不要忘记 WP7)。

您唯一需要担心的是 UI,但您的大部分业务逻辑应该可以工作。这里是 MonoTouch 支持的 .NET 程序集的完整列表 http://monotouch.net/Documentation/Assemblies MonoTouch 还公开了与所有 CocoaTouch API 的 C#/CIL 绑定。

另外,MonoTouch 团队的支持也很棒,您只需进入 IRC 并提出问题,就会立即得到答复,邮件列表也是如此:)

我真的很喜欢 MonoTouch,我知道没有一种语言能够完美地完成所有任务,而且 Objective -C也不例外。

Hello here is my personal opinion,

I've also been on .Net world for a while, when iPhone launched the ability to create native apps, it called my whole attention and i really tried to learn objc, i took 2 books and started trying and trying and trying like for a month and then I left iPHone programming due to you had to make tons of things than on .NET was a line away for example the GC.

When Miguel de Icaza launched MonoTouch i gave it a try and i realized that most of my previously done code was fully funcional (i've always tried to separate ui code from business code) and this is really the point of .NET on the iPhone, to bring most of your already done business logic to the device.

Also on objc you wont find anything like LINQ or var keyword, consuming web services on MonoTouch its just a few clicks away etc.

If you want to target the Android platform there is also MonoDroid (monodroid.net) wich its coming out later this year the stable release, you can give it a try right now on the beta state. Also if you want to target Mac OSX there is MonoMac. So you can share class libs between all this 3 platforms (also al mono/.net supported ones) without hassle not to mention it will work on windows too and viceversa (when possible) (Also dont forget about WP7).

The only thing you will need to worry about its the UI but most of your business logic should work. here is a complete list of .NET Assemblies supported in MonoTouch http://monotouch.net/Documentation/Assemblies and also MonoTouch exposes a C#/CIL binding to all the CocoaTouch APIs.

Also the support of the MonoTouch team is awesome you can just get on IRC ans ask a question and it will be answered right away, mailing list too :)

I really enjoy MonoTouch, i know that no language is perfect for all tasks, and Objective-C is no exception.

等风来 2024-10-20 06:18:50

每个示例、教程和文档都将用 Objective-C 编写,而 mono 只会在底层调用 Objective-C 代码。如果您确实觉得 C# 值得在心里翻译所有内容,并在代码中添加额外的层,那么我想就这么做吧。

Every example, tutorial, and piece of documentation will be written in Objective-C, and mono will just be calling into Objective-C code under the hood. If you really feel like C# is worth mentally translating everything, and adding an extra layer in your code, go for it I guess.

找个人就嫁了吧 2024-10-20 06:18:50

作为一名 C# 开发人员,我发现对 Objective-C 充满信心是非常痛苦的。达到这个阶段大约需要两个月的时间和两个优秀的资源。

拿出你的 Visa 卡,你总共需要花费 54 美元。

1. 免费斯坦福大学“开发 iOS 应用程序”讲座。
纯粹的才华,它让学习 Objective-C 变得非常清晰。
http://itunes.apple.com/us /itunes-u/developing-apps-for-ios-sd/id395631522

2. iOS 学徒系列。
这是你需要支付 54 美元的地方。它一步步教你如何用 Objective-C 编程,而且你构建的应用程序实际上非常令人印象深刻。第 1 部分(共 4 部分)是完全免费的,因此您可以在使用任何现金之前先尝试一下。
http://www.raywenderlich.com/store/ios-apprentice

我还没有查找任何与这两个资源的清晰度和友好性相匹配的 iOS 书籍。

最后,不要购买任何书籍,除非它们明确说明它们适用于 iOS5 和 XCode 4。这个最新版本的 XCode 实在是太不同了,无法让它们发挥作用。

免责声明:我不使用此线程中提到的任何资源!

As a C# developer, I've found Objective-C to be horribly painful to become confident with. It's taken about two months, and two excellent resources to get to this stage.

Get your Visa card out, you'll need to spend a total of $54.

1. The free Stanford "Developing apps for iOS" lectures.
Pure brilliance, and it makes learning Objective-C very clear.
http://itunes.apple.com/us/itunes-u/developing-apps-for-ios-sd/id395631522

2. The iOS Apprentice series.
This is where you'll need to cough up the $54. It teaches you, step by step, how to program in Objective-C, and the apps you build are actually pretty impressive. Part 1 (of the 4 parts) is completely free, so you can give it a go before parting with any cash.
http://www.raywenderlich.com/store/ios-apprentice

I've yet to find any iOS books which match the clarity and friendliness of these two resources.

Finally, don't buy any books unless they specifically say that they're for iOS5 and XCode 4. This latest version of XCode is simply too different to make them useful.

Disclaimer: I don't work for any of the resources mentioned in this thread !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文