将昨天显示的问题给debug了一下,发现官方例子中,将承载着grid的panel容器中frame属性设置为true了。试了下,果真就是这个原因,来看下我的最终成果吧。...
分类:
Web程序 时间:
2014-09-04 20:58:30
阅读次数:
350
@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
//事件监听机制 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
新建两个类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
importjava.awt.Frame; importjava.awt.List; publicclassTestextendsFrame{ publicTest(){ Listlst=newList(10); lst.add("你好nihao"); this.add(lst,"North"); ...
分类:
编程语言 时间:
2014-09-03 01:25:45
阅读次数:
409
four approachs can cross domain in javascript1.jsonp2.document.domain(only in frame and they have one same parent domain)3.window.name4.window.postMes...
分类:
移动开发 时间:
2014-09-02 11:47:34
阅读次数:
197
R语言的merge函数可以实现类似SQL的有点类似 left join right join 或者类似union的效果。df1 = data.frame(CustomerId=c(1:6),Product=c(rep("Toaster",3),rep("Radio",3)))> df2 = data...
分类:
其他好文 时间:
2014-09-02 00:06:53
阅读次数:
1019
iOS有时候需要判断是否touch到某个图的区域中。也就是touch到的这个点是否在某个图的区域范围内。解决问题的办法很多, 这里简单介绍一种。我们可以通过CGPath创建一个区域,区域是由路径做两点间线段并闭合成的区域,然后就可以用CGPath相关函数CGPathContainsPoint判断点是否在区域里了。比如这里创建了一个简单的矩形。它的frame为(4, 4, 10, 10)。 四个顶点...
分类:
移动开发 时间:
2014-09-01 17:44:03
阅读次数:
208
首先摘录如下URL对pagemap的描述。
https://www.kernel.org/doc/Documentation/vm/pagemap.txt
* /proc/pid/pagemap. This file lets a userspace process find out which
physical frame each virtual page is map...
分类:
系统相关 时间:
2014-08-31 09:14:51
阅读次数:
805