效果图:工程图:代码中需要引入第三方库QQView.代码:AppDelegate.h#import //加入头文件#import "myQQView.h"@interface AppDelegate : UIResponder { myQQView *qqview;}@property (st...
分类:
其他好文 时间:
2014-11-28 15:57:11
阅读次数:
149
转自:http://www.cocoachina.com/industry/20140825/9450.html(via:玉令天下的Blog)本文讲述了UITableView、UICollectionView实现 self-sizing cell 布局的知识,以及如何用 InvalidationCo...
分类:
移动开发 时间:
2014-11-28 15:42:58
阅读次数:
292
效果图:工程图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UITableView *myTableView;}@endRootViewController.m#import ...
分类:
其他好文 时间:
2014-11-28 14:19:05
阅读次数:
256
原理是很简单的, 在OpenCV实现的是R-HOG, 即对图像img->窗口window->块block->细胞单元cell进行向量统计
首先看描述器的构造函数, 我用
HOGDescriptor *desc=new HOGDescriptor(cvSize(40,80),cvSize(10,20),cvSize(5,10),cvSize(5,5),9);
进行测...
分类:
其他好文 时间:
2014-11-27 18:24:56
阅读次数:
220
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView =.....
分类:
其他好文 时间:
2014-11-27 18:07:28
阅读次数:
126
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 自定义cell点击背景 cell.selectedBackgroundView ...
分类:
其他好文 时间:
2014-11-27 17:47:45
阅读次数:
119
问题
Grid某个单元格的样式怎么设置?
解决方案
使用attributes属性设置,如果有css中class属性,需要加双引号””.如
{
field: "name",
title: "Name",
attributes: {
"class": "table-cell",
style: "text-align: right; f...
分类:
其他好文 时间:
2014-11-27 16:25:33
阅读次数:
358
问题
Grid表格的标题样式怎么设置?
解决方案
使用headerAttributes属性设置,如果有css中class属性,需要加双引号””.如
{
field: "name",
headerAttributes: {
"class": "table-header-cell",
style: "text-align: right; font-s...
分类:
Web程序 时间:
2014-11-27 16:25:22
阅读次数:
550
使用 convertRect: fromView: 或者 convertRect: toView:例如一个视图控制器的view中有一个UITableView,UITableView的某个cell中有个UITextField,想要得到UITextField在view中的位置,就要靠上面的两个方法了。用...
分类:
其他好文 时间:
2014-11-26 20:42:38
阅读次数:
161
NGUI制作背包很是方便,听紫龙慢慢道来:
这次比较简单,但是需要理解代码。首先建立bg-——背景,然后是Grid,然后Grid下面是cell,cell是背包的格子,然后里面放物品——wuping。wuping下面放个Label,Label里面写数字,暂时表示物品数量。一切都如图所示;
之后給wuping加一个脚本,脚本命名也为wuping ,下面是详细代码:
话说这...
分类:
其他好文 时间:
2014-11-26 16:37:07
阅读次数:
271