先贴一下显示效果图,仅作参考:代码如下:1、自定义Dialogpublic class SelectDialog extends AlertDialog{public SelectDialog(Context context, int theme) { super(context, theme...
分类:
移动开发 时间:
2015-02-13 16:05:10
阅读次数:
316
代码如下
- (void)viewDidLoad {
[super viewDidLoad];
UISearchBar * searchBar =[[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, 44)];
self.tableView.tableHeaderView=searchBar;
self...
分类:
其他好文 时间:
2015-02-12 18:31:29
阅读次数:
193
转自:http://onewebsql.com/blog/generics-extends-super以下基本够用了Today we continue our mini-series on Java Generics. In previous posts we have investigatedho...
分类:
编程语言 时间:
2015-02-12 16:06:40
阅读次数:
196
fromPyQt4importQtGui,QtCoreclassButtonLineEdit(QtGui.QLineEdit):buttonClicked=QtCore.pyqtSignal(bool)def__init__(self,icon_file,parent=None):super(But...
分类:
其他好文 时间:
2015-02-12 13:45:22
阅读次数:
691
function class(classname, super) local superType = type(super) local cls --如果父类既不是函数也不是table则说明父类为空 if superType ~= "function" and superTy...
分类:
其他好文 时间:
2015-02-11 23:15:31
阅读次数:
257
//// RootViewController.m// Lianxi_02//// Created by Super man on 15-2-11.// Copyright (c) 2015年 super man. All rights reserved.//#import "RootViewCon...
分类:
其他好文 时间:
2015-02-11 20:31:45
阅读次数:
164
Android FATAL EXCEPTION:main 空指针异常,抛出这个异常的时候提示错误的地方在onMeasure方法里的super.onMeasure(widthMeasureSpec, heightMeasureSpec);
还有Fragment里的一个button点击事件,这个button的前面还有一个Button,但是错误没报到那里。
最后发现原来xml布局文件button的i...
分类:
移动开发 时间:
2015-02-11 18:38:25
阅读次数:
131
1、代码
public class MainActivity extends Activity {
TextView tv_json;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout...
分类:
移动开发 时间:
2015-02-11 16:47:50
阅读次数:
132
有点坑爹,设置file owner 不行,搞了一早上,来说下怎么关联吧自定义UIView要重写required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }xib里面,不能设置file owner,要设...
分类:
编程语言 时间:
2015-02-11 15:56:57
阅读次数:
281
简介
在前一篇中,我们已经定位出来了在图片中车牌号的位置,并且将车牌号图片复制成了新图片,并显示出来,本章在这些被截取出来的图片上继续处理。
截取出来的新图片如下:
图像灰阶/二值化
首先也是选择将图像进行灰阶,然后采用以255一遍开始,取占了总pixel为5%...
分类:
其他好文 时间:
2015-02-11 14:37:34
阅读次数:
257