1、改变高度
自定义UINavigationBar的新类别:
[cpp] view
plaincopy
//UINavigationBar+BackgoundImage.h
#import
@interface UINavigationBar (BackgoundImage)
@end
在新类别的实...
分类:
移动开发 时间:
2015-04-16 17:47:46
阅读次数:
133
在网上看到的大部分采用DFA算法,大概思路如下:
1:DFA采用Map的hash机制,将敏感词单个拆分,以第1个字符为key,其他值依旧使用map相连,形成了大map套用小map..
2:遍历需要过滤的字符串,获取每一个字符,根据get(key)来检测是否为敏感词。
我最开始是想到用正则来提取数据中的敏感数据,然后获取敏感字所在索引位置,再利用StringBuilder.replace(start,end,str)来替换,但经过测试发现使用正则有2个问题:
1:因为是正则要整串匹配,所以效率慢,同样3...
分类:
其他好文 时间:
2015-04-16 17:39:07
阅读次数:
272
WITHFOOTNOTE_LIST(CARRIER_CD,TARIFF_CD,FOOTNOTE_CD,CATEGORY_NO,SEQUENCE_NO)AS(SELECTDISTINCTX.CARRIER_CD,X.TARIFF_CD,X.FOOTNOTE_CD,X.CATEGORY_NO,X.SEQUENCE_NOFROM${parSchema}FTNREC2_CATCTRLXINNERJOIN${parSchema}FTNBATCHYONX.FTNT_BTCH_SG=Y.FTNT_BTCH_SGWHEREX..
分类:
数据库 时间:
2015-04-16 14:33:25
阅读次数:
913
问题描述
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remai...
分类:
其他好文 时间:
2015-04-16 14:22:29
阅读次数:
208
我在Yahoo与ATS 九死一生的故事http://www.sunchangming.com/blog/post/4667.html去年9月,我去Yahoo后领导交给我的第一件事,就是把Yahoo内部一个过时的、已经End-Of-Life的http server换成Apache Traffic Se...
分类:
其他好文 时间:
2015-04-16 14:15:03
阅读次数:
137
.h#import @interface ZHCustomImageView : UIView//提供接口@property (nonatomic, strong) UIImage* image;- (instancetype)initWithImage:(UIImage*)image;@end.m...
分类:
其他好文 时间:
2015-04-16 13:59:35
阅读次数:
140
第一种 设置转义字符SET ESCAPE '/'BEGINDBMS_OUTPUT.PUTLINE('A /&B');END;第二种 关闭替换变量SET DEFINE END;BEGINDBMS_OUTPUT.PUTLINE('A /&B');END;第三种 改变替换变量符号SET DEFINE '^...
分类:
其他好文 时间:
2015-04-16 13:54:52
阅读次数:
124
修改行间距的方法:\usepackage{setspace}%使用间距宏包\begin{document}\begin{spacing}{2.0}%%行间距变为double-space双倍行距的段落内容。\end{spacing}\begin{spacing}{1.0}%%行间距变为single-s...
分类:
其他好文 时间:
2015-04-16 12:12:39
阅读次数:
162
通过@dynamic和objc_setAssociatedObject,实现给类别添加属性,前者是说明程序员自己实现setter和getter,后者是动态给对象添加属性。两个配合使用可以实现给对象添加属性。下面代码以scrollview为例:
头文件
@interface UIScrollView (Refresh)
@property (nonatomic) RefreshView * refreshView;
@end
源文件
#import
static cha...
分类:
其他好文 时间:
2015-04-16 10:23:03
阅读次数:
648
NSOperation 依赖关系,就像你和女友,互相需要对方一样。非常有意思。
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoa...
分类:
移动开发 时间:
2015-04-15 23:26:53
阅读次数:
166