码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
scrollView
//设置内容页的大小//scrollView添加图片如果想让视图滑动,内容页的大小必须比ScrollView得大小要大scrollView.contentSize=CGSizeMake(320*8,568*8);//设置区域相对于frame上下左右在哪显示.//scrollView.contentInset=UIEdgeInsetsMake(100,100,0,0);//设置内容区的偏移量,修..
分类:其他好文   时间:2014-09-05 03:23:20    阅读次数:192
代码截屏
//代码截屏//UIGraphicsBeginImageContext(view.frame.size);////对哪个视图截图给定大小的图片//[view.layerrenderInContext:UIGraphicsGetCurrentContext()];//////获取截图的图片对象//UIImage*p_w_picpath=UIGraphicsGetImageFromCurrentImageContext();////结束绘制图片//..
分类:其他好文   时间:2014-09-05 03:22:41    阅读次数:155
[LeetCode] Binary Tree Postorder Traversal
public class Solution { public List postorderTraversal(TreeNode root) { List result = new ArrayList(); Stack nodeStack = new Stack();...
分类:其他好文   时间:2014-09-05 02:08:10    阅读次数:166
[ExtJS5学习笔记]第十五节 Extjs5表格显示不友好?panel的frame属性在作怪
将昨天显示的问题给debug了一下,发现官方例子中,将承载着grid的panel容器中frame属性设置为true了。试了下,果真就是这个原因,来看下我的最终成果吧。...
分类:Web程序   时间:2014-09-04 20:58:30    阅读次数:350
POJ 3621 最优比例生成环
题目大意就是找到一个环使得顶点权值之和与边权之和的比率最大 首先,需要注意的是题目要求可以从任意一点开始,网上很多解题报告默认的从1点开始,虽然过了此题,但是显然是不太对的。 由于题目是求的max,那么在边权变形后,用 SPFA求最长路,看是否出现正环, 然后根据这个进行二分查找。 #pragma comment(linker, "/STACK:1024000000,102400...
分类:其他好文   时间:2014-09-04 17:00:39    阅读次数:163
iOS代码Button Demo
@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRe...
分类:移动开发   时间:2014-09-04 09:34:27    阅读次数:194
一些错误码的值
今天用av_seek_frame后,调用av_read_frame返回了错误码,花了点时间才确定错误码啥意思。 先记一下,方便以后查询和补充。 #include <stdio.h> #define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((u...
分类:其他好文   时间:2014-09-03 17:01:47    阅读次数:770
BestCoder Round #7-A,B,C
A:Little Pony and Permutation 直接暴力搜索,复杂度O(n) #include #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,1024000000") using n...
分类:其他好文   时间:2014-09-03 16:51:56    阅读次数:211
JAVA事件监听机制学习
//事件监听机制 import java.awt.*; import java.awt.event.*; public class TestEvent { public static void main(String[] args) { Frame f = ...
分类:编程语言   时间:2014-09-03 12:48:16    阅读次数:203
target-action设计模式--主要为Button的方法重写
新建两个类MainViewController/ButtonViewButtonView.h#import<UIKit/UIKit.h> @interfaceButtonView:UIView //实现target-action设计模式 //点击的时候让谁去执行方法 @property(nonatomic,assign)idtarget; //要执行的方法 @property(nonatomic,assign)SELaction; //..
分类:其他好文   时间:2014-09-03 11:25:27    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!