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