众所周知,给图片添加圆角有CALayer的cornerRadius, 比如: 最直接的方法: imgView.layer.cornerRadius1=110; imgView.clipsToBounds = YES; 这事离屏渲染 (off - screen - rendering), 是很消耗性能 ...
分类:
移动开发 时间:
2016-05-14 12:46:08
阅读次数:
226
确认应用需要像游戏或者视频应用一样保持屏幕处于开启状态。最好的方式是在Activity中使用FLAG_KEEP_SCREEN_ON。(and only in an activity, never
in a service or other app component)。
For example:
publicclassMainActivityextendsActivi...
分类:
移动开发 时间:
2016-05-13 14:42:22
阅读次数:
187
#ifndef MacroDefinition_h
#define MacroDefinition_h//-------------------获取设备大小-------------------------
//NavBar高度
#define NavigationBar_HEIGHT 44
//获取屏幕 宽度、高度
#define SCREEN_WIDTH ([UIScreen mainScree...
分类:
移动开发 时间:
2016-05-13 03:56:45
阅读次数:
201
安装系统,配置环境第一步:进入系统用工具putty进入centos系统,输入账号密码。
第二步:远程终端端口screen -S lnmp如果提示screen: command not found,需要安装screenyum install screen第三步:安装LNMP环境安装过程中可以选择相应的设置,默认也可以!
1.2版本wget -c http://soft.vpser.net/lnmp/...
分类:
其他好文 时间:
2016-05-13 03:29:10
阅读次数:
141
模板与泛型编程
--类模板成员[续1]
二、非类型形参的模板实参
template
class Screen
{
public:
Screen():screen(hi * wid,'#'),
cursor(hi * wid),height(hi),width(wid) {}
//..
private:
std::string sc...
分类:
编程语言 时间:
2016-05-12 22:01:03
阅读次数:
224
一,可以用于创建有关联关系的页面
二,UINavigationController
1,UINavigationController维护一个多屏幕的堆栈,每个screen都是一个viewController
2,UINavigationController继承于viewController,它的view属性包含一个UINavigationBar和top...
分类:
其他好文 时间:
2016-05-12 21:28:46
阅读次数:
125
本文主要命令pstree、ps、top、nice、free、screen
1. 程序&&进程
程序是静态的,进程是动态的,即运行中的程序。
一个程序至少有一个进程,一个进程至少有一个线程,即主线程。进程之间内存独立,线程之间内存共享,共享所属进程的内存。
2. pstree
查看进程树
显示进程树及其进程号
pstree -p | more
3. tree...
分类:
系统相关 时间:
2016-05-12 18:38:09
阅读次数:
202
适用场景tmux是一个优秀的终端多路复用软件,类似GNU Screen,但来自于OpenBSD,采用BSD授权。使用它最直观的好处就是,通过一个终端登录远程主机并运行tmux后,在其中可以开启多个控制台而无需再“浪费”多余的终端来连接这台远程主机;当然其功能远不止于此,比如分屏(当然其他一些软件也能达到这个目的,比如vim,但我还是喜欢tmux的分屏)。为什么使用tmux:tmux比screen有更...
分类:
其他好文 时间:
2016-05-12 17:24:19
阅读次数:
248
[1]
Insert Install media and start Computer. Following screen is shown, then Push Enter key.
[2]
This is the section to check a media, Skip it if you don't need it....
分类:
其他好文 时间:
2016-05-12 13:46:14
阅读次数:
217
[1]
Insert Install media and start Computer. Following screen is shown, then Push Enter key.
[2]
This is the section to check a media, Skip it if you don't need it....
分类:
其他好文 时间:
2016-05-12 13:44:47
阅读次数:
249