今天准备了解下MVVM设计模式,于是就从GitHub上Down了一个MVVM的demo(地址在这)学习,下载之后,在模拟器上运行一下,出现如下图上下有黑边,以前也遇到过这个问题,但当时没有记录,现在还得再次googl,这次记录再次以备下次查询。 解决过程 1、新建一个Launch Screen文件 ...
分类:
移动开发 时间:
2016-05-16 10:39:11
阅读次数:
162
这周学习类容: Browser 对象: Window 表示浏览器中打开的窗口。 如果文档包含框架(frame 或 iframe 标签),浏览器会为 HTML 文档创建一个 window 对象,并为每个框架创建一个额外的 window 对象。 Navigator 包含有关浏览器的信息。 Screen ...
分类:
Web程序 时间:
2016-05-16 00:01:31
阅读次数:
376
bzoj4580: [Usaco2016 Open]248 Description Bessie likes downloading games to play on her cell phone, even though she does find the small touch screen r ...
分类:
其他好文 时间:
2016-05-14 18:45:13
阅读次数:
154
众所周知,给图片添加圆角有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