码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
iOS开发-View中frame和bounds区别
开发中调整View的时候的经常会遇到frame和bounds,刚开始看的时候不是很清楚,不过看了一下官方文档,frame是确定视图在父视图中的位置,和本身的大小,bounds确定可以确定子视图在当前视图中的位置,还可以改变View的大小,如果bounds确定大小,那么View的视图优先选择的boun...
分类:移动开发   时间:2015-04-03 13:12:44    阅读次数:183
LeetCode - Valid Parentheses
题目意思非常简单,判断所给字符串中的括号是否匹配,需要注意的问题:)(这样是不匹配的。 public class Solution { public boolean isValid(String s) { Stack stack = new Stack(); ...
分类:其他好文   时间:2015-04-02 22:07:35    阅读次数:146
Min Stack
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的创建
总结一下tableView的知识点1.tableView的创建 //tableView的创建 //1.初始化 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITab...
分类:其他好文   时间:2015-04-02 20:46:23    阅读次数:97
leetcode:Binary Tree Postorder Traversal
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
leetcode:Binary Tree Preorder Traversal
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
leetcode:Binary Tree Inorder Traversal
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
计算UIWebView加载的网页内容高度
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
UITableViewController子类分离self.tableView和self.view的方法
当一个view上显示的内容能够用一个UITableView实现,可以通过子类化一个UITableViewController控制器,上面提供了一个UITableView对象,不需要自己维护其frame,使用起来还是挺方便的。但是当在该控制器的view上添加其他的视图时,会出现无论如何都会添加的se....
分类:其他好文   时间:2015-04-02 18:26:27    阅读次数:124
Java基础——Java集合(一)
概述Java的集合类主要由两个接口派生而来:Collection和Map,Collection和Map是Java集合框架的根接口,这两个接口又包括了一些子接口或实现类。如下图是集合的继承关系:Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack...
分类:编程语言   时间:2015-04-02 18:23:22    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!