android异常:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
出现这个异常的原因是你在子线程中修改了主线程中的组件的状态或数据。
android规定:只有在原始线程中(主...
分类:
移动开发 时间:
2014-12-13 17:59:44
阅读次数:
171
报的异常错误:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.解决方法:使用Han...
分类:
移动开发 时间:
2014-12-13 00:56:50
阅读次数:
237
在跟随教程学习到显示web页面的html源码时报错:Only the original thread that created a view hierarchy can touch its views,通过网上查找资料得知:android中相关的view和控件不是线程安全的,必须单独做处理。如果要更...
分类:
其他好文 时间:
2014-12-12 18:40:56
阅读次数:
146
在cocos2d-x3.2中关于触摸事件的处理第一种用法,首先我们需要在.H文件里面定义触摸的回调,这里我们就先拿到单点触摸的3个状态把1:boolonTouchBegan(Touch*touch,Event*unused_event);//开始状态2:voidonTouchMoved(Touch*touch,Event*unused_event);//移动状态3:voidonTouch..
分类:
其他好文 时间:
2014-12-12 17:06:46
阅读次数:
133
最主要的“画”的功能是在drawRect函数中完成,而所有路径或者点得拼接是在touchesBegan、touchesMoved和touchesEnded三个函数中完成的。...
分类:
移动开发 时间:
2014-12-12 15:02:53
阅读次数:
168
-webkit-tap-highlight-color: transparent; Mobile上点击链接高亮的时候设置颜色为透明-webkit-user-select: none; 设置为无法选择文本-webkit-touch-callout: none; 长按时不触发系统的菜单, 可用在图片上加...
分类:
Web程序 时间:
2014-12-12 14:50:25
阅读次数:
219
环境:ubuntu12.04 在/etc/init.d目录建立一个脚本文件svnd.sh cd /etc/init.d touch?svnd.sh chmod +x svnd.sh vim svnd.sh 输入如下内容: #!/bin/bash #svnserve startup svnserve -d -r /ysh/svn 更新修改权...
分类:
系统相关 时间:
2014-12-11 16:08:08
阅读次数:
178
关闭与重启关闭shutdown –h nowshutdown –h 45haltinit 0重启shutdown –r now “system will be reboot now.”rebootinit 6目录管理cdls(更多用ll)mkdir文件管理touch 建文件;更新文件目录时间cat/...
分类:
系统相关 时间:
2014-12-11 13:53:40
阅读次数:
182
目前ios的指令集有以下几种:
i386:mac
armv6:iPhone,iPhone2,iPhone3G,第一代和第二代iPod Touch
armv7:iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini
armv7s:iPhone5,iPhone5C, iPad 4...
分类:
其他好文 时间:
2014-12-11 10:26:49
阅读次数:
301
http://years.im/Home/Article/detail/id/52.html创建iOS动态库新建工程并选择默认Target为Cocoa Touch Framework, 如图:做编码工作,在这里我简单的写了一个Utils的类,并写了一个log方法设置开放的头文件:Framework中...
分类:
其他好文 时间:
2014-12-10 17:58:18
阅读次数:
193