摘要: 首先重现这种问题,一般都是模拟器或真机测试时,没有Stop就删除了App。修复方式 clear。如果clear都不行,那只有新建一个项目了,别犹豫了,新建项目copy相关文件过来替换吧。 阅读全文
posted @ 2012-12-01 00:56 阿水哥 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 问题的产生其实适合分辨率有关系。IPhone4s是retina屏幕,所以以下值应该是2var getDevicePixelRatio = function (){ return window.devicePixelRatio || 1;}如果是2,我们应当怎么做?比如有个canvasvar pixelTatio = getDevicePixelRatio(),width = 300,height =300;canvas.style.width = width + "px";canvas.style.height = height +"px";canvas 阅读全文
posted @ 2012-11-29 14:29 阿水哥 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: 1 - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 2 { 3 // First, ask the webview via JS if it supports the new orientation 4 NSString* jsCall = [NSString stringWithFormat: 5 @"(function(){ \ 6 ... 阅读全文
posted @ 2012-11-29 14:02 阿水哥 阅读(298) 评论(0) 推荐(0) 编辑