会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
阿水哥
博客园
首页
新随笔
联系
订阅
管理
2012年12月1日
phonegap build Thread 1: signal SIGABRT 的修复方法
摘要: 首先重现这种问题,一般都是模拟器或真机测试时,没有Stop就删除了App。修复方式 clear。如果clear都不行,那只有新建一个项目了,别犹豫了,新建项目copy相关文件过来替换吧。
阅读全文
posted @ 2012-12-01 00:56 阿水哥
阅读(288)
评论(0)
推荐(0)
2012年11月29日
当你使用meta-viewport,canvas在手机上不清晰(模糊)的解决办法。
摘要: 问题的产生其实适合分辨率有关系。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 阿水哥
阅读(2314)
评论(0)
推荐(0)
cordova|phonegap 在ios下 控制 orientation。
摘要: 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 阿水哥
阅读(302)
评论(0)
推荐(0)
公告