12 2015 档案

摘要:do { try NSFileManager().createDirectoryAtPath("\(NSHomeDirectory())/Documents/Direct", withIntermediateDirectories: true, attributes: nil) }c... 阅读全文
posted @ 2015-12-30 22:44 egai 阅读(1729) 评论(0) 推荐(0) 编辑
摘要:电路检查了都没什么问题.rst一直被拉低.后来发现是电源供电有问题.导致muc一直在低电压重启,所以一直烧录不进去.加上电容滤波就可以了. 阅读全文
posted @ 2015-12-30 11:01 egai 阅读(660) 评论(0) 推荐(0) 编辑
摘要:首先如果http:访问需要关闭ATS,所以要在info.plist 文件中加入以下代码,大概在第五行加入.就是出现在第一项.NSAppTransportSecurityNSAllowsArbitraryLoads然后在代码 加写入@IBOutlet weak var vw: UIWebView! v... 阅读全文
posted @ 2015-12-29 20:38 egai 阅读(138) 评论(0) 推荐(0) 编辑
摘要:点击左侧的项目导航,中间会出现相应的选项卡,在Build Settings 的选项卡中,找到Packaging 分栏中的Product Name 修改成自己需要的名称即可. 阅读全文
posted @ 2015-12-28 22:04 egai 阅读(186) 评论(0) 推荐(0) 编辑
摘要:正常是这样 的var a = 0var a=0这样是错误 的var a= 0或var a =0总结,两边要么都有空格,要么都不要空格。否则就报错。 阅读全文
posted @ 2015-12-25 22:13 egai 阅读(140) 评论(0) 推荐(0) 编辑
摘要:var a = 0print(a.dynamicType)结果为: Int 阅读全文
posted @ 2015-12-23 10:40 egai 阅读(227) 评论(0) 推荐(0) 编辑
摘要://// ViewController.swift// app1//// Created by apple on 15/12/18.// Copyright © 2015年 apple. All rights reserved.//import UIKitclass ViewController: ... 阅读全文
posted @ 2015-12-18 21:46 egai 阅读(203) 评论(0) 推荐(0) 编辑
摘要:解决Xcode在ipad/iphone 9.2 系统真机测试时出现could not find developer disk image问题方法1:拷贝这个文件(http://download.csdn.net/detail/cvbtvbwu/9340467)到/Applications/Xcode... 阅读全文
posted @ 2015-12-18 14:03 egai 阅读(184) 评论(0) 推荐(0) 编辑
摘要:/*************************************/func sayHello(name: String,age: Int){ print("your name is \(name),age is \(age)") }sayHello("cai",age: 18)/... 阅读全文
posted @ 2015-12-18 13:48 egai 阅读(110) 评论(0) 推荐(0) 编辑
摘要:/*************************************/var some = 5var i = 0while i < 10{ i++guard i < some else { break }print(i)}/****************************... 阅读全文
posted @ 2015-12-18 10:51 egai 阅读(101) 评论(0) 推荐(0) 编辑
摘要:/*************************************/var a = "obdoc111"if a.hasSuffix("112") { print("yes")}else{ print("no")}/***********************************... 阅读全文
posted @ 2015-12-17 22:55 egai 阅读(114) 评论(0) 推荐(0) 编辑
摘要:import Foundationclass Hi{ init() { print("aaaa") } func sayHi(){ print("hi!~") }}class Hello:Hi { override func sayHi() { print("hi!~... 阅读全文
posted @ 2015-12-17 11:26 egai 阅读(182) 评论(0) 推荐(0) 编辑
摘要:import Foundationlet lable="wo ai ni"var a = 1var b=3print(String(a+b)+lable);import Foundationlet lable="wo ai ni"var a = 1var b=3print("\(a+b)"+labl... 阅读全文
posted @ 2015-12-16 21:13 egai 阅读(148) 评论(0) 推荐(0) 编辑