1. 术语和概念术语说明备注Screen size(屏幕尺寸)指的是手机实际的物理尺寸,比如常用的2.8英寸,3.2英寸,3.5英寸,3.7英寸摩托罗拉milestone手机是3.7英寸Aspect Ratio(宽高比率)指的是实际的物理尺寸宽高比率,分为long和nolongMilestone是1...
分类:
移动开发 时间:
2015-05-12 11:18:22
阅读次数:
119
CGFloat width = 40; CGFloat height = 40; //获取屏幕宽高 //获取屏幕对象 UIScreen *screen = [UIScreen mainScreen]; //获取屏幕大小 CGRect screenF...
分类:
其他好文 时间:
2015-05-12 01:21:54
阅读次数:
106
android:icon
An iconrepresenting the activity. The icon is displayed to users when a representationof the activity is required on-screen. For example, icons for activities thatinitiate tasks are disp...
分类:
移动开发 时间:
2015-05-12 00:07:43
阅读次数:
151
我们接着讲for函数。range()函数和len()函数常常一起用于字符串索引,这里我们要显示每一个的元素及其索引值。#小插曲,在cmd中,清除屏幕的方法是输入cls,即 clean screen。让我们分析一下这个语句。foo='abc'for i in range(len(foo)): pri....
分类:
编程语言 时间:
2015-05-10 18:43:42
阅读次数:
127
目前Apple推荐的场景转换的方法有以下几个: 一般的跳转方法: presentViewController Discussion In a horizontally compact environment, the presented view is always full screen. In ...
分类:
移动开发 时间:
2015-05-10 12:51:56
阅读次数:
284
实例005 控制弹出窗口居中显示
实例说明
点击页面上的按钮,弹出窗口,并将窗口居中显示。
技术要点
本例首先应用JavaScript中的window对象的open()方法,打开指定大小的新窗口,然后通过screen对象,获取屏幕分辨率,再根据获取的值通过window对象的moveTo()方法,将新窗口移动到屏幕居中位置。...
分类:
编程语言 时间:
2015-05-10 11:32:57
阅读次数:
197
Here's How: To capture the entire desktop, press Command-Shift-3. The screen shot will be automatically saved as a PNG file on your desktop. To copy t...
分类:
系统相关 时间:
2015-05-10 08:34:11
阅读次数:
162
camera的aspect默认是与screen保持一致,可以通过脚本将其设为指定值,如下:usingUnityEngine;usingSystem.Collections;publicclassmakeCameraViewWequalsH:MonoBehaviour{//Usethisforinit...
分类:
编程语言 时间:
2015-05-09 21:52:34
阅读次数:
121
Tmux介绍:Tmux是BSD实现的Screen替代品,相对于Screen,它更加先进:支持屏幕切分,而且具备丰富的命令行参数,使其可以灵活、动态的进行各种布局和操作。它可以做到一条命令就启动起来(强大的配置),左侧是终端,右侧是Vim,下面来一个gdb——总之它就是一个灵活的IDE,任仍..
分类:
系统相关 时间:
2015-05-09 20:33:31
阅读次数:
326
一、 Scrapy简介Scrapy is a fast high-level screen scraping and web crawling framework, used to crawl websites and extract structured data from their pages...
分类:
其他好文 时间:
2015-05-08 23:49:59
阅读次数:
154