Gavin.han

致力于移动开发 技术改变生活

导航

2012年10月29日

摘要: 一、使用NSTimer实现动画1.新建empty AppLication,添加HomeViewController页面, iphone.png图片2.在HomeViewController.xib中添加Image View,并调整其大小;再添加一个Slider控件3.HomeViewController.h代码:#import <UIKit/UIKit.h>@interface HomeViewController : UIViewController{ CGPoint delta;//坐标变化量 NSTimer *timer; CGSize picSize;//图片大小 }@pr 阅读全文

posted @ 2012-10-29 21:55 gavin.han 阅读(5007) 评论(0) 推荐(1) 编辑

摘要: 一、在Firefox中打开sqlite3(如果没有,选择工具->附加组件,添加即可)新建sqlite3数据库,Contacts,建立一个members表,字段 id,integer,主键,自增;name,varchar;email,varchar,null;birthday,datetime,null。向表中添加一些数据:二、新建Empty Appliation,添加一个HomeViewController,和一个组件libsqlite3.dylib,来支持对sqlite3的连接,关闭,增删改查等操作。1.HomeViewController.h代码:#import <UIKit/ 阅读全文

posted @ 2012-10-29 13:12 gavin.han 阅读(21245) 评论(2) 推荐(0) 编辑