Search bar delegate-
(void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar{ UITextField
*searchBarTextField = nil; for (UIView *mainview i...
分类:
移动开发 时间:
2014-05-26 07:25:46
阅读次数:
310
今天到UITabBarController 结合 UIPickView, 这里一共有5个实现,
由浅到易。其实在IB上面使用UITabBarController很简单, 就像平常拖控件一样拖到界面上面, 然后把Tab Bar
Item拉到UITabBarController就可以增加底下的tab, ...
分类:
移动开发 时间:
2014-05-26 07:04:17
阅读次数:
375
tar
Examples:
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.
tar -tvf archive.tar # List all files in archive.tar verbosely.
tar -xf archive.tar ...
Given n non-negative integers representing an
elevation map where the width of each bar is 1, compute how much water it is
able to trap after raining....
分类:
移动开发 时间:
2014-05-23 03:59:43
阅读次数:
364
介绍在在title bar上显示indeterminate progress
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ...
分类:
其他好文 时间:
2014-05-23 00:31:27
阅读次数:
352
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo...
分类:
其他好文 时间:
2014-05-23 00:30:50
阅读次数:
415
以下四种情况,编译器将会合成(即由编译器负责)一个nontrivial默认构造函数。
1、成员对象带有默认构造函数
例如:
#include
using namespace std;
class Foo {
public:
Foo() { cout << "Foo" << endl; } // Foo类含有默认构造函数
};
class Bar {
pub...
分类:
其他好文 时间:
2014-05-22 13:24:06
阅读次数:
212
可能是以前记错了,总认为在ios6上使用了UINavigationController或者TabBarController会因为多了bar而影响子controller的view的frame大小。今天在xcode5.1上验证,无论ios6或者7,使用容器controller,产生了的bar都不会对子c...
分类:
移动开发 时间:
2014-05-22 04:28:02
阅读次数:
339
1OGNL概述 OGNL是对象图导航语言Object-Graph Navigation
Language的缩写,它是一种功能强大的表达式语言(Expression
Language,简称为EL),通过它简单一致的表达式语法,可以存取对象的属性,调用对象的方法,遍历整个对象的结构图,实现字段类型...
分类:
其他好文 时间:
2014-05-21 19:37:14
阅读次数:
283
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represente...
分类:
移动开发 时间:
2014-05-21 06:44:38
阅读次数:
359