1, about swift and debugging, Swift in ios7.0 only support, ios8.3 system of the real machine will need to xcode6.3 talent debugging. Installing xcode6.3 requires OS X 10.10 or more
2, the application is started and set by Main.storyboard, define which viewcontroller to start first
3, the components are instantiated in two ways. One is to go directly to the code and new out. The second is defined within the code. The components are then added to the storyboard view interface. Note that components are associated after they are added.
4, notice in build phasses inside cannot be missing Main.storyboard file. Otherwise, the following error will be reported when the real machine is debugged.
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. Installation of Xcode Simulator. How to perform 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 actively connect to the Apple develop center to generate development certificates, without manual intervention. But assuming that the development center has a distribution version of the certificate, it will report an error
(Environment, Xcode 6.1), the solution to the development center to remove the distribution version of the authorization file (no impact on the online app)
7. Note that you must select IOS device when you publish the version number through product--archive Archivebutton is only valid, otherwise it is gray cannot click.
8, UIWebView Wkwebview realize swift and JS communication
9, inexplicable error: Could not create a sandbox extension for '/'. Some error hints are misleading, so try to use the version number to troubleshoot the situation.
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
12, set the app icon, there are two ways, one is in the imanges.xcassets inside, put the picture in, the other is to manually edit the Info.plist, to create a new row. Select icon files to add the item to it
the icon size required for each platform is:https://developer.apple.com/library/ios/qa/qa1686/_index.html
13, set the full screen display, add constraint constraints for UI interface. method, the Constrained object is selected, the editor-pin-is added in 4 directions, and the spacing between the upper and lower left is 0. (Note the selection of version number size class, any,Compact, Regular)
Http://www.2cto.com/kf/201409/334180.html
Http://www.cocoachina.com/ios/20140915/9623.html
http://article.yeeyan.org/view/126760/424005
http://blog.csdn.net/myfmyfmyfmyf/article/details/43537411
http://blog.csdn.net/yongyinmg/article/details/41045069
14. Set the hidden status bar to overwrite Prefersstatusbarhidden method, returns True
Override func prefersstatusbarhidden (),Bool {
returntrue;
}
Http://jingyan.baidu.com/article/d2b1d1027f93db5c7f37d44b.html
This article continues to update ...
Introduction to Swift Novice iOS development