开发中调整View的时候的经常会遇到frame和bounds,刚开始看的时候不是很清楚,不过看了一下官方文档,frame是确定视图在父视图中的位置,和本身的大小,bounds确定可以确定子视图在当前视图中的位置,还可以改变View的大小,如果bounds确定大小,那么View的视图优先选择的boun...
分类:
移动开发 时间:
2015-04-03 13:12:44
阅读次数:
183
题目意思非常简单,判断所给字符串中的括号是否匹配,需要注意的问题:)(这样是不匹配的。 public class Solution { public boolean isValid(String s) { Stack stack = new Stack(); ...
分类:
其他好文 时间:
2015-04-02 22:07:35
阅读次数:
146
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:
其他好文 时间:
2015-04-02 21:00:58
阅读次数:
104
总结一下tableView的知识点1.tableView的创建 //tableView的创建 //1.初始化 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITab...
分类:
其他好文 时间:
2015-04-02 20:46:23
阅读次数:
97
class Solution {
public:
vector postorderTraversal(TreeNode *root) {
vector res;
stack>s;
TreeNode *p = root;
while(p!=NULL||!s.empty())
{
while...
分类:
其他好文 时间:
2015-04-02 19:02:48
阅读次数:
117
class Solution {
public:
vector preorderTraversal(TreeNode *root) {
vector res;
stack s;
TreeNode * p = root;
while(p!=NULL||!s.empty())
{
while...
分类:
其他好文 时间:
2015-04-02 19:02:38
阅读次数:
131
class Solution {
public:
vector inorderTraversal(TreeNode *root) {
vector res;
stack s;
TreeNode * p = root;
while(p!=NULL||!s.empty())
{
while(...
分类:
其他好文 时间:
2015-04-02 19:01:33
阅读次数:
98
key code- (void)webViewDidFinishLoad:(UIWebView *)aWebView{ CGRect frame = aWebView.frame; frame.size.height = 1; aWebView.frame = frame; ...
分类:
Web程序 时间:
2015-04-02 18:36:26
阅读次数:
192
当一个view上显示的内容能够用一个UITableView实现,可以通过子类化一个UITableViewController控制器,上面提供了一个UITableView对象,不需要自己维护其frame,使用起来还是挺方便的。但是当在该控制器的view上添加其他的视图时,会出现无论如何都会添加的se....
分类:
其他好文 时间:
2015-04-02 18:26:27
阅读次数:
124
概述Java的集合类主要由两个接口派生而来:Collection和Map,Collection和Map是Java集合框架的根接口,这两个接口又包括了一些子接口或实现类。如下图是集合的继承关系:Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack...
分类:
编程语言 时间:
2015-04-02 18:23:22
阅读次数:
136