摘要: 如果要限制UITextField输入长度最长不超过kMaxLength,那么需要实现做以下操作:1、实现UITextFieldDelegate协议;2、实现textField:shouldChangeCharactersInRange:replacementString:方法;- (BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)string{NSIntegerstrLength = textField.text.le 阅读全文
posted @ 2013-11-07 20:10 Clin 阅读(6194) 评论(0) 推荐(1) 编辑
摘要: //修改搜索框背景 self.searchCarKeyWord.backgroundColor=[UIColorclearColor]; //去掉搜索框背景 //1. [[self.searchCarKeyWord.subviewsobjectAtIndex:0]removeFromSuperview]; //2. //CGRect rcSearchBg = CGRectMake(0, 0, self.searchBar.frame.size.width, self.searchBar.frame.size.height); UITextField *searchField; UIButton 阅读全文
posted @ 2013-11-07 20:06 Clin 阅读(266) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh`rm -rf allLua.zip``mkdir ./tempScripts``mkdir ./tempScripts/scripts``cp -a ./scripts/ ./tempScripts/scripts`echo "拷贝中间文件"`find ./tempScripts -name .svn|xargs rm -rf`echo "删除svn"filelist=`find ./tempScripts/scripts -name "*.lua"`echo "生成luac"for file 阅读全文
posted @ 2013-11-07 19:26 Clin 阅读(312) 评论(0) 推荐(0) 编辑