05 2012 档案

摘要:(2011-05-06 16:44:42)转载▼标签:html5多点触摸canvasmultytouchit分类: WEB编程利用HTML5实现多点触摸,在Canvas上实时绘制两点,方便观察多点效果。代码简单易懂,在iPad上运行效果最佳。两个手指点在屏幕上移动时两个小点会跟随手指移动:关键代码:获取控件:var canvas = document.getElementByIdx_x("canvas");判断是否支持触摸: var touchable = 'createTouch' in document;如果支持就添加事件:if (touchable) 阅读全文
posted @ 2012-05-25 16:56 Holyen 阅读(836) 评论(0) 推荐(0) 编辑
摘要:dequeueReusableCellWithIdentifier:Returns a reusable table-view cell object located by its identifier.- (UITableViewCell*)dequeueReusableCellWithIdentifier:(NSString*)identifierParametersidentifierA string identifying the cell object to be reused. By default, a reusable cell’s identifier is its clas 阅读全文
posted @ 2012-05-21 17:50 Holyen 阅读(701) 评论(0) 推荐(0) 编辑
摘要:视图需要我们自己去定义样式时用到了TableViewCell组件,效果如下首先创建View Based App工程,在.xib文件中拖入一个Table View,前面我们说到了,这里就不再重复,注意连接协议和两个必须方法的实现。完成.h中代码C代码#import<UIKit/UIKit.h>@interfaceTableViewCellViewController:UIViewController<UITableViewDelegate,UITableViewDataSource>{IBOutletUITableView*tView;}@property(nonatom 阅读全文
posted @ 2012-05-21 17:48 Holyen 阅读(1013) 评论(0) 推荐(0) 编辑