最近开始做iOS开发,遇到一些小问题和解决方法,记录下。 今天是iPhone屏幕适配
iPhone5出来之后屏幕就有iPhone就有了2种尺寸:3.5寸和4寸,xcode 5
的IB设计器里面界面是4寸的,把按钮放到底部,模拟器选成3.5寸的按钮就看不到了,找到了解决方法: http://stack...
分类:
移动开发 时间:
2014-05-09 10:44:35
阅读次数:
401
Android provides a default Bluetooth stack,
BlueDroid, that is divided into two layers: The Bluetooth Embedded System (BTE),
which implements the core...
分类:
其他好文 时间:
2014-05-09 10:18:47
阅读次数:
518
#include#include#include #include
//使用库函数exit()using namespace std;templateclass Stack{ private: Type*data;
//栈元素数组 int maxSize; /...
分类:
其他好文 时间:
2014-05-09 07:27:40
阅读次数:
294
keycode------------>KEYCODE_BACK,KEYCODE_MENUevent.getAction------->ACTION_DOWN,ACTION_UP,ACTION_MULTIPLE|_____onKeyUp,onKeyDown,onKeyLongPresshttp://...
分类:
其他好文 时间:
2014-05-09 05:47:01
阅读次数:
313
适配器(Adaptor)是提供接口映射的模板类。适配器基于其他类来实现新的功能,成员函数可以被添加、隐藏,也可合并以得到新的功能。STL提供了三个容器适配器:queue、priority_queue、stack。这些适配器都是包装了vector、list、deque中某个顺序容器的包装器。注意:适配...
分类:
其他好文 时间:
2014-05-08 23:13:29
阅读次数:
298
题目链接在这题各种RE和WA。 方法上就是BFS,
还是基础不扎实的原因,很明显的一点就是这里使用二维vector, 开始的时候我竟然没有给ans分配空间,然后直接push_back,
导致RE到死。这点是必须引起注意的!附上代码: 1 /** 2 * Definition for binary ....
分类:
其他好文 时间:
2014-05-08 18:00:37
阅读次数:
292
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390
1 import java.util.Stack; 2 3 public class T007 { 4
public static void main(String[] args) { 5 Queue q = new Queue(); 6 q.stack1...
分类:
编程语言 时间:
2014-05-08 15:32:24
阅读次数:
356
很简单的题目,在想是不是后面就不要更这么简答的了,大家都会写,没人看啊。层序遍历的基础上,加了保存每一层,加了从下往上输出,就是一个vector和一个stack的问题嘛,无他,但手熟尔。
class Solution {
public:
vector > levelOrderBottom(TreeNode *root) {
vector > res;
if...
分类:
其他好文 时间:
2014-05-08 11:17:46
阅读次数:
268
1 import java.util.Stack; 2 public class T005 { 3
public static void main(String[] args){ 4 Node n1 = new Node(1); 5 Node n2 =
ne...
分类:
编程语言 时间:
2014-05-08 05:19:42
阅读次数:
402