简体   繁体   English

iOS 9,Swift 2.0,Xcode和测试

[英]iOS 9, Swift 2.0 , Xcode and testing

I am planning to learn to develop iOS apps. 我打算学习开发iOS应用程序。 I'll most probably be learning Objective-C only for now and would like to develop some actual apps for iOS. 我很可能现在只学习Objective-C,并希望为iOS开发一些实际的应用程序。

Now, with the launch of Swift 2.0, will Objective-C apps still run on iOS9 ? 现在,随着Swift 2.0的推出,Objective-C应用程序仍将在iOS9上运行吗? Also, is it possible to test run an Objective-C app on your phone like mentioned here ? 此外,是否可以测试在手机上运行Objective-C应用程序,如此处所述? https://developer.apple.com/xcode/ Or is this facility available only for apps written in Swift? https://developer.apple.com/xcode/或者此工具仅适用于使用Swift编写的应用程序?

Does Swift allow me to do everything that Objective-C does? Swift允许我做Objective-C的所有工作吗?

Any further advide or guidance for what should I know before enrolling for the course will be appreciated to help me judge things better. 在报名参加课程之前,我应该知道的任何进一步的建议或指导,将有助于我更好地判断事情。

Swift is still just the second language. 斯威夫特仍然只是第二语言。 All Cocoa frameworks are written in C or Obj-C (maybe the new ones in iOS 9 are written in Swift). 所有Cocoa框架都是用C或Obj-C编写的(也许iOS 9中的新框架是用Swift编写的)。

The language in which an application is written doesn't matter, the code is compiled into the same machine code, so yes, Obj-C apps will continue to run and many developers won't bother with Swift. 编写应用程序的语言无关紧要,代码编译成相同的机器代码,因此,Obj-C应用程序将继续运行,许多开发人员不会打扰Swift。 Apps that have been already written will not have to be rewritten to Swift (with some exceptions). 已编写的应用程序不必重写为Swift(有一些例外)。

Swift won't allow you to do absolutely everything that Obj-C does but it will allow you to do almost everything and the code will be probably more robust, considering that Swift is more modern language with stronger typing than Obj-C. Swift不会允许你完成Obj-C所做的一切,但它会让你做几乎所有的事情而且代码可能会更强大,考虑到Swift是一种比Obj-C更强的打字的现代语言。 If you are a beginner, you won't probably find any problematic use case. 如果您是初学者,您可能不会发现任何有问题的用例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM