摘要: Touches触摸事件处理:在viewcontroller中添加touch的一些方法//获取触摸点println(touches.anyObject()?.locationInView(self.view))多点触摸得在viewdidload中打开多触摸,self.view.multipleTouc... 阅读全文
posted @ 2015-02-19 16:03 Kyle Ruan 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Page-Base Application :作为一个电子书的应用模板1关于数据源,首先查看到RootViewController的ViewDidLoad方法的一个datasource来源——ModelController2ModelController方法的初始方法提供了数据的来源和显示内容Mas... 阅读全文
posted @ 2015-02-19 15:36 Kyle Ruan 阅读(156) 评论(0) 推荐(0) 编辑
摘要: IOSstoryboard做界面跳转设计页面:self.dismissViewControllerAnimated(true, completion: nil )ios8已经替换掉了老得方法定义 使用两个参数的dismissViewControllerAnimatedNIB做界面设计:self.pr... 阅读全文
posted @ 2015-02-19 13:08 Kyle Ruan 阅读(183) 评论(0) 推荐(0) 编辑
摘要: IOS tableViewControllertableViewController ---带有Controller的类都是标准的MVC模式tableView的使用:----tableViewController的子类,只有ViewtableView和他的类型:tableView控件可以通过自己写继... 阅读全文
posted @ 2015-02-19 12:22 Kyle Ruan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: swift是一门脚本语言无指针和内存管理机制函数内部可以定义函数funca->(Int->Int) :一个返回函数地址的函数------这个返回的函数是一个Int参数,返回值Int的函数swift的数组是动态分配内存的------没有所谓的先定义长度,再使用闭包closure——>>反向传值———>... 阅读全文
posted @ 2015-02-19 11:36 Kyle Ruan 阅读(259) 评论(0) 推荐(0) 编辑