摘要: 创建多个ViewController与多个Storyboard,这里分别新建了三个在每个storyboard中选中第一个顶级view在右侧的Custom Class中为其绑定Controller,并设置Storyboard ID在主界面中创建一个ScrollView,并设值其宽高与可滑动的距离 scrollView=UIScrollView(frame: CGRectMake(CGF... 阅读全文
posted @ 2015-02-13 14:55 linwoain 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 因为在IOS项目中用到了sqlite数据库,在github上寻找支持的库,找到了这个库https://github.com/stephencelis/SQLite.swift 按照说明文件提示,下载下来这个工程,并将它附加到自己的工程中 然后再自己的工程里导入这个模块 import SQLite简单的说下语法,首先要初始化这个库,例如我用的是一个外置的库,按照路径打开 let db=Da... 阅读全文
posted @ 2015-02-13 14:52 linwoain 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 1、动画(Animation)传统动画中,有位移、旋转、缩放、透明度变化等动画,如以下代码移动一个图片控件TranslateAnimation animation = new TranslateAnimation(0, 200, 0, 0);animation.setDuration(1000);animation.setFillAfter(true);//使控件停留到动画结束的位置,若不设置则返... 阅读全文
posted @ 2015-02-13 14:50 linwoain 阅读(625) 评论(0) 推荐(0) 编辑