上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页
  2016年2月23日
摘要: 1.向学生表中插入100条数据 2.按条件查询学生数据 3.修改学生数据 4.删除学生数据 import UIKit class ViewController: UIViewController { lazy var documentsPath:String={ let paths=NSSearch 阅读全文
posted @ 2016-02-23 22:29 baraka 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个名为test的数据库 2.添加一张学生表,表里面每一条记录包括学好,姓名,分数3个字段 工程-Build Phases-Link Binary With Libraries------libsqlite3.tbd 建立桥接文件 #import <sqlite3.h> import UIK 阅读全文
posted @ 2016-02-23 00:48 baraka 阅读(181) 评论(0) 推荐(0) 编辑
  2016年2月22日
摘要: 创建一个学生类,首先归档保存学生信息,然后再解档读取数据 import UIKit class Student:NSObject, NSCoding{ var sno:String! var name:String! var score:Int! init(sno:String,name:Strin 阅读全文
posted @ 2016-02-22 23:39 baraka 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1.建立一个名字的数组,然后保存到沙盒的Documents目录 2.建立一个学生的字典,然后保存到沙盒的Documents目录 import UIKit class ViewController: UIViewController { lazy var documentsPath:String={ 阅读全文
posted @ 2016-02-22 23:07 baraka 阅读(201) 评论(0) 推荐(0) 编辑
摘要: import UIKit class ViewController: UIViewController { let refreshInterval:NSTimeInterval = 10 let refreshKey = "LastRefreshTime" override func viewDid 阅读全文
posted @ 2016-02-22 22:37 baraka 阅读(312) 评论(0) 推荐(0) 编辑
  2016年2月21日
摘要: import UIKit class ViewController: UIViewController { lazy var documentsPath:String={ let paths=NSSearchPathForDirectoriesInDomains(.DocumentDirectory 阅读全文
posted @ 2016-02-21 22:19 baraka 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //1.Home目录,即沙盒目录 var path=NSHomeDirectory() pr 阅读全文
posted @ 2016-02-21 20:56 baraka 阅读(147) 评论(0) 推荐(0) 编辑
  2016年2月11日
摘要: yangchaodeMacBook-Air:downloads yangchao$ vim ~/.bash_profile 阅读全文
posted @ 2016-02-11 18:16 baraka 阅读(305) 评论(0) 推荐(0) 编辑
  2016年2月8日
摘要: Homebrew官网 http://brew.sh/index_zh-cn.html Homebrew是神马 linux系统有个让人蛋疼的通病,软件包依赖,好在当前主流的两大发行版本都自带了解决方案,Red hat有yum,Ubuntu有apt-get 神马,你用mac os,不好意Mac os木有 阅读全文
posted @ 2016-02-08 19:46 baraka 阅读(1823) 评论(0) 推荐(0) 编辑
摘要: 1.sudo rm /usr/local/mysql 2.sudo rm -rf /usr/local/mysql* 3.sudo rm -rf /Library/StartupItems/MySQLCOM 4.sudo rm -rf /Library/Perferences/My* 5.vim / 阅读全文
posted @ 2016-02-08 16:47 baraka 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页