今天上午继续跑JAT_1_84,修改测试过程中出现的问题,我主要跑的是case_16,这套case中很多的图片有问题,大部分都是因为页面的背景色由原来的灰色换成了白色,我把所有出错的case的截图都替换到了simulator文件夹里面,然后提交到了远程仓库。下午继续学习iOS的设计模式,应用代理模式...
分类:
其他好文 时间:
2014-08-13 00:28:24
阅读次数:
295
1.设置section的数目,即是你有多少个cell
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 3; // in your case, there are 3 cells
}
2.对于每个section返回一个cell
- (NSInteger)tableView:(UI...
分类:
移动开发 时间:
2014-08-12 22:08:04
阅读次数:
309
Handler mHandler;mHandler=new Handler(){ public void dispatchMessage(android.os.Message msg) { switch (msg.what) { case 1: Int...
分类:
其他好文 时间:
2014-08-12 18:46:34
阅读次数:
221
在linux的shell中我们习惯使用case语句来做分支处理,然而Python中却省略了这个函数,经过多方查找,发现其实case语句在C语言中是通过查对应的hash表,来进行跳转的。在Python中我们可以通过三种方法来实现这种功能。1、字典;2、lambda;3、switch类。1、字典dictCase={‘case1..
分类:
编程语言 时间:
2014-08-12 17:41:15
阅读次数:
487
#!/bin/bash
#description:Configrealserverloandapplynoarp
SNS_VIP=(
192.168.100.210
192.168.100.220
)
case"$1"in
start)
for((i=0;i<`echo${#SNS_VIP[*]}`;i++))
do
interface="lo:`echo${SNS_VIP[$i]}|awk-F.‘{print$4}‘`"
/sbin/ifconfig$interface${SNS_VIP[$i]}br..
分类:
其他好文 时间:
2014-08-12 17:37:45
阅读次数:
205
前言
大家可能遇到了这样的情况,调用Camera,然后指定自定义的保存路径,结果返回的Intent为空。我们来分析一下原因。
分析
首先看Camera的部分逻辑,在源码中的Camera.java的doAttach()方法里面。
// First handle the no crop case -- just return the value. If the
// caller sp...
分类:
其他好文 时间:
2014-08-12 17:30:54
阅读次数:
276
UML(Unified Modeling Language)统一建模语言。包括以下几个重要功能:可视化功能(Visualizing)说明功能(specifying)建造功能(Construting)建文档功能(Documenting)UML包括:使用案例图(User case diagrams)类图...
分类:
其他好文 时间:
2014-08-12 13:17:24
阅读次数:
309
原题http://poj.org/problem?id=2104
K-th Number
Time Limit: 20000MS
Memory Limit: 65536K
Total Submissions: 37130
Accepted: 11974
Case Time Limit: 2000MS
Description
...
分类:
其他好文 时间:
2014-08-11 17:57:42
阅读次数:
233
#include
// 窗口过程函数
LRESULT CALLBACK MyWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_DESTROY:
PostQuitMessage (0);
return 0;
case WM_PAINT:
PAINTSTRU...
分类:
其他好文 时间:
2014-08-11 12:03:12
阅读次数:
175
有关touchEvent的事件里都有一个 MotionEvent 参数,下面来简单介绍一下它的属性的一些含义和使用的方法
通常单指操作时,一般如下:
switch (event.getAction()) {//第一个触摸点
case MotionEvent.ACTION_DOWN: //按下 = 0
float x = event.getX();
break;
case Mo...
分类:
移动开发 时间:
2014-08-11 12:00:02
阅读次数:
199