12 2015 档案

什么是CoreData?
摘要:简介Core Data是个框架(并不是数据库哦),它使开发者可以把数据当做对象来操作,而不必在乎数据在磁盘中的存储方式。对于iOS程序员来说,这很有用,因为我们已经可以通过代码非常熟悉的操作对象了。由Core Data 所提供的数据对象叫做托管对象(Managed Object),而Core Dat... 阅读全文

posted @ 2015-12-25 10:23 罗小夕 阅读(433) 评论(0) 推荐(0)

Swift - 操作SQLite数据库(引用SQLite3库)
摘要:原文:http://www.hangge.com/blog/cache/detail_645.html#SQLite轻量级数据库在移动应用中使用非常普遍,但是目前的库是C编写的,为了方便使用,对SQLite相关的操作用Swift进行了封装。这个封装代码使用了一个开源项目SQLiteDB,地址是:ht... 阅读全文

posted @ 2015-12-25 10:21 罗小夕 阅读(1426) 评论(0) 推荐(0)

PNChart图表绘制库的使用
摘要:1,导入PNChart库并建立桥接文件 2,该第三方库用到了一个类,一并导入 3,可能会报错,做如下修改 1⃣ 2⃣ 4,用tableview创建一个简易的模版,用来显示对应的图表 5,折线图代码 func LineChart(){ print("LineChart") //声明... 阅读全文

posted @ 2015-12-22 21:34 罗小夕 阅读(570) 评论(0) 推荐(0)

PathCover个人主页控件使用
摘要:继续上次的项目 http://www.cnblogs.com/luoxiaoxi/p/5067689.html1,添加PathCover库 并添加库的引用 2,屏蔽掉之前的MJRefresh的下拉刷新函数,添加一个PathCover变量var head:XHPathCover! 3,在v... 阅读全文

posted @ 2015-12-22 20:29 罗小夕 阅读(192) 评论(0) 推荐(0)

ProgressHUD进程提示控件的使用
摘要:以上次的工程为前提: http://www.cnblogs.com/luoxiaoxi/p/5065588.html1,将ProgressHUD库添加到工程 2,添加引用 3,在需要调用的地方调用如下代码ProgressHUD.show("别急嘛,摸摸大~~~") 4,更多方法 Progr... 阅读全文

posted @ 2015-12-22 18:48 罗小夕 阅读(388) 评论(0) 推荐(0)

MJRefresh的使用
摘要:1⃣写一个简单的tableview模版,显示数组里的数据 var ObjectArray = [String]() var i = 0 override func viewDidLoad() { super.viewDidLoad() for i = 0 ; i Int { return 1 ... 阅读全文

posted @ 2015-12-22 09:29 罗小夕 阅读(691) 评论(0) 推荐(0)

安装Alcatraz插件管理器
摘要:一,安装插件管理器 关闭Xcode,终端下输入以下代码安装: curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh 若要删除,运行以下代码: rm -rf ~/Librar... 阅读全文

posted @ 2015-12-21 18:14 罗小夕 阅读(173) 评论(0) 推荐(0)

iOS 之 Core Data实践 2
摘要:1,增加一个Entity HitList.xcdatamodeld➡Add Entity➡重命名为Person 2,增加字段 一个entity就相当于一个表格,可以向里面添加属性,在Attributes处选择建立的表格,往里面添加属性 3,在View Controller中引入数据库 im... 阅读全文

posted @ 2015-12-17 20:22 罗小夕 阅读(162) 评论(0) 推荐(0)

iOS 之 Core Data实践 1
摘要:1,新建一个项目,勾选core data2,删除默认的viewcontroller,新添加一个table view controller,并给其创建一个类TableViewController:UITableViewController3,给table view controller嵌入一个Navi... 阅读全文

posted @ 2015-12-17 10:57 罗小夕 阅读(156) 评论(0) 推荐(0)

安装及使用cocoapods的教程
摘要:安装及使用cocoapods的教程http://blog.csdn.net/wzzvictory/article/details/18737437操作步骤:cocoapods是使用ruby编写的,mac系统自带ruby环境,所以我们可以直接安装cocopods库cocoapods安装地址 https... 阅读全文

posted @ 2015-12-16 08:47 罗小夕 阅读(208) 评论(0) 推荐(0)

安装CocoaPods
摘要:开发环境:OSX 10.11.1列出现有源 gem sources -l移除原ruby镜像源 gem sources --remove https://rubygems.org/新增淘宝实施镜像源 gem sources -a https://ruby.taobao.org/列出现有源,检查是... 阅读全文

posted @ 2015-12-15 11:28 罗小夕 阅读(161) 评论(0) 推荐(0)

天气预报
摘要:Json在线解析工具: http://www.jsoneditoronline.org/实时天气API: http://www.k780.com/api/weather.today①绘制简单的UI,三个label,分别显示城市、天气、温度②在Class外面创建Weather结构体 structWea... 阅读全文

posted @ 2015-12-14 21:36 罗小夕 阅读(190) 评论(0) 推荐(0)

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.
摘要:解决方法: 方法1.使用https协议请求; 方法2.Info.plist中增加App Transport Security Settings子项Allow Arbitrary Loads设置为YES。 阅读全文

posted @ 2015-12-14 20:53 罗小夕 阅读(719) 评论(0) 推荐(0)

jSON Call can throw but it is not marked with try
摘要:let jsonData:NSDictionary = NSJSONSerialization.JSONObjectWithData(urlData!, options:NSJSONReadingOptions.MutableContainers ) as! NSDictionary第一种用法:do... 阅读全文

posted @ 2015-12-14 20:38 罗小夕 阅读(201) 评论(0) 推荐(0)

银行卡扫描(基于swift)
摘要:①下载CardIO库②将库文件解压,拖入工程,务必按下图勾选③选中项目,target-->build Setting-->All Other Linker Flags 双击“+”,添加语句“-lc++”④General,找到Linked Frameworks and libtaries 添加... 阅读全文

posted @ 2015-12-14 11:27 罗小夕 阅读(670) 评论(0) 推荐(0)

一个简单的swift项目(基于TableView实现数据增添,删除,查找,更改功能)
摘要:项目来源: 慕课网的swift教程 http://www.imooc.com/learn/173参考资料: 《如何使用Swift添加Table View搜索框》http://www.tairan.com/archives/7721/ 《UISearchController Tutorial: ... 阅读全文

posted @ 2015-12-10 17:19 罗小夕 阅读(743) 评论(0) 推荐(0)

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn
摘要:将工程从较低版本移植到Xcode7.1时,无论如何调试都报错:解决办法:Clean the ProjectQuit XcodeReopen XcodeBuild 阅读全文

posted @ 2015-12-05 18:21 罗小夕 阅读(1639) 评论(0) 推荐(0)

导航