摘要:
在主菜单栏中找到debug instrument->debug instrument settings -> target -> debug instrument selection中选择你的调试仪器,比如我用的是swim st-link 阅读全文
摘要:
do { try NSFileManager().createDirectoryAtPath("\(NSHomeDirectory())/Documents/Direct", withIntermediateDirectories: true, attributes: nil) }c... 阅读全文
摘要:
电路检查了都没什么问题.rst一直被拉低.后来发现是电源供电有问题.导致muc一直在低电压重启,所以一直烧录不进去.加上电容滤波就可以了. 阅读全文
摘要:
首先如果http:访问需要关闭ATS,所以要在info.plist 文件中加入以下代码,大概在第五行加入.就是出现在第一项.NSAppTransportSecurityNSAllowsArbitraryLoads然后在代码 加写入@IBOutlet weak var vw: UIWebView! v... 阅读全文
摘要:
点击左侧的项目导航,中间会出现相应的选项卡,在Build Settings 的选项卡中,找到Packaging 分栏中的Product Name 修改成自己需要的名称即可. 阅读全文
摘要:
正常是这样 的var a = 0var a=0这样是错误 的var a= 0或var a =0总结,两边要么都有空格,要么都不要空格。否则就报错。 阅读全文
摘要:
var a = 0print(a.dynamicType)结果为: Int 阅读全文
摘要:
//// ViewController.swift// app1//// Created by apple on 15/12/18.// Copyright © 2015年 apple. All rights reserved.//import UIKitclass ViewController: ... 阅读全文
摘要:
解决Xcode在ipad/iphone 9.2 系统真机测试时出现could not find developer disk image问题方法1:拷贝这个文件(http://download.csdn.net/detail/cvbtvbwu/9340467)到/Applications/Xcode... 阅读全文
摘要:
/*************************************/func sayHello(name: String,age: Int){ print("your name is \(name),age is \(age)") }sayHello("cai",age: 18)/... 阅读全文