Introduction to Swift Novice iOS development

Source: Internet
Author: User

1, about swift and debugging, Swift in ios7.0 only support, ios8.3 system's real machine must xcode6.3 to debug, install xcode6.3 need OS X 10.10 or more

2, the application is started and set by Main.storyboard, define which viewcontroller to start first

3, the component has two ways to instantiate, one is directly inside the code new out, the other is the code inside the definition, and then in the storyboard view interface to add components. Notice that the components are added and then associated.

4, note in the build phasses can not be missing main.storyboard files, or in the Real machine debugging will report the following error

Terminating app due to uncaught exception ' nsinvalidargumentexception ', Reason: ' Could not ' find a storyboard named ' Main ' In bundle NSBundle </private/var/mobile/containers/bundle/application/dbd61805-4289-4853-bd12-b48b65025b24/ Wkframeworktest.app> (Loaded) '

5, Xcode Simulator installation, how to run the old version of iOS under the new Xcode, address: http://blog.csdn.net/zhangao0086/article/details/38491271

6, IPA packaging process, note that Xcode will automatically connect to the Apple develop center to generate a development certificate, without manual intervention. However, if the development Center has a distribution version of the certificate, it will report an error

(Environment, Xcode 6.1), workaround, go to dev Center to remove the distribution version of the license file (no impact on the app that is already online)

7. Note that the archive button is only available when IOS device is selected by Product--archive release, otherwise it is grayed out.

8, UIWebView Wkwebview realize swift and JS communication

9, inexplicable error: Could not create a sandbox extension for '/', some error hints are misleading, in this case try to use version to troubleshoot.

10, how to read local files:nsbundle. Mainbundle (). Pathforresource ()

11, Wkwebview must be supported in iOS 8.0, and the default does not support alert, confirm popup, must cover the SWIFT code implementation


This article continues to update ...

Introduction to Swift Novice iOS development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.