-
Notifications
You must be signed in to change notification settings - Fork 0
My First App
ZefengYu edited this page Jan 5, 2017
·
7 revisions
XCode8之前
swift也支持类似C语言一样的Macro 操作步骤:
- Target
- Build setting
- Swift Compiler - Custom Flags
- Debug,添加
-D DEBUG
XCode8之后
Active Compilation Conditions
Debug,添加DEBUG
,不加-D
#if DEBUG
#else
#endif
load an except HTTP URL with App Transport Security enabled in iOS 9
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSExceptionDomains</key>
<dict>
<key><!-your domain-!></key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<true/>
</dict>
</dict>
</dict>