1.1What is Swift
“Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Sw...
分类:
移动开发 时间:
2015-02-04 13:04:04
阅读次数:
221
在SenchaTouch中,当focus到textfield等输入框时,软键盘随即弹出来,当输入框失去焦点(blur)的时候,键盘随即消失,这是最基本的情况。在手动操作的时候,情况是正常的,但有时候我们需要代码来让软键盘弹出或消失,对应的代码就是textfield.focus(),textfield...
分类:
其他好文 时间:
2015-02-03 21:12:44
阅读次数:
447
本文通过一个简单的例子,讲解了如何使用iOS 8 SDK中的Touch ID指纹识别功能。...
分类:
移动开发 时间:
2015-02-03 17:20:14
阅读次数:
176
创建desktop文件sudo touch /usr/share/applications/sublime.desktop添加内容[Desktop Entry]Encoding=UTF-8Name=sublime2Comment=sublime2Exec= xxxxxxxx //可执行文件的全路径I...
分类:
其他好文 时间:
2015-02-03 17:04:35
阅读次数:
134
在手机浏览器中,长按可选中文本,但如果在应用中,会给人一种异样的感觉,最好还是禁用此功能为上。* { -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:non...
分类:
移动开发 时间:
2015-02-03 08:17:02
阅读次数:
186
获取方式: Ext.data.StoreManager.lookup(‘xxxx‘);?//xxxx:你在为store配置时配置的storeId 另外对于这种方式还有一个快捷方式: Ext.getStore("xxxx"); 两种方式效果相同...
分类:
其他好文 时间:
2015-02-02 18:21:18
阅读次数:
145
首先,先要区分view和viewgroup,一个是控件,一个是控件的容器(意思是里面可以包含控件)
接下来,熟悉三个方法:
public boolean dispatchTouchEvent (MotionEventev) //分发TouchEvent
默认时,InterceptTouchEvent处理
当返回true时,自己处理
返回false时,onTouchEvent...
分类:
移动开发 时间:
2015-02-02 18:17:15
阅读次数:
204
来源http://hi.baidu.com/study_sweet/item/fc6ac732a216dd8db711dba51、Touch事件简介pc上的web页面鼠 标会产生onmousedown、onmouseup、onmouseout、onmouseover、onmousemove的事件,但...
分类:
移动开发 时间:
2015-02-02 14:06:33
阅读次数:
129
今天测试视频资讯客户端,跟新UI是 LogCat 控制台出现了这样的错误:Only the original thread that created a view hierarchy can touch its views. ?网上搜了一下才发现:原来android中相关的view和控件不是线...
分类:
移动开发 时间:
2015-02-02 12:49:07
阅读次数:
172
if [ -f /lianxi/hosts ]then echo hosts is exist exit 1 #跳出程序,终止执行后面的命令。返回值为1else touch /lianxi/hosts ...
分类:
其他好文 时间:
2015-02-01 17:40:02
阅读次数:
153