01 2013 档案

摘要:[self.navigationController popViewControllerAnimated:YES]; 阅读全文
posted @ 2013-01-29 09:30 天纯蓝 阅读(160) 评论(0) 推荐(0)
摘要:要引头: #import <QuartzCore/QuartzCore.h>代码如下: [tvContent.layer setBackgroundColor:[[UIColor whiteColor] CGColor]];[tvContent.layer setBorderColor:[[UIColor grayColor] CGColor]];[tvContent.layer set... 阅读全文
posted @ 2013-01-29 09:17 天纯蓝 阅读(3215) 评论(0) 推荐(0)
摘要:一、建立 UITableView DataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self];[self.view addSubview:DataTable];[DataTable ... 阅读全文
posted @ 2013-01-26 09:56 天纯蓝 阅读(23591) 评论(0) 推荐(4)
摘要:把View 类改成UIControl 给View加onTouchDown事件 /* *点击空白处让键盘消失 */ - (IBAction)onTouchDownEvent:(id)sender { [tf1 resignFirstResponder]; [tf2 resignFirstResponder]; } 阅读全文
posted @ 2013-01-25 17:02 天纯蓝 阅读(269) 评论(0) 推荐(0)
摘要:今天在编写Iphone的Code时遇到一个错,LINK时提示的。 阅读全文
posted @ 2013-01-25 14:58 天纯蓝 阅读(7801) 评论(1) 推荐(0)
摘要:http://code4app.com 阅读全文
posted @ 2013-01-25 11:50 天纯蓝 阅读(165) 评论(0) 推荐(0)
摘要:NSString *value = @"1234567890";比较的方法: [value compare:(NSString *)];[value compare:(NSString *) options:(NSStringCompareOptions)];[value compare:(NSString *) options:(NSStringCompareOptions) range... 阅读全文
posted @ 2013-01-25 11:42 天纯蓝 阅读(821) 评论(0) 推荐(0)
摘要:1. lighttpd Lighttpd是一个具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。lighttpd是众多OpenSource轻量级的web server中较为优秀的一个。支持FastCGI, CGI, Auth, 输出压缩(output compress), URL重写, Alias等重要功能。 Lighttpd使用fastcgi方式运行php,它会使用... 阅读全文
posted @ 2013-01-24 11:00 天纯蓝 阅读(231) 评论(0) 推荐(0)
摘要:NSString *tempA = @"123"; NSString *tempB = @"456"; 1,字符串拼接 NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB]; 2,字符转int int intString = [newString intValue]; 3,int转字符 NSStr... 阅读全文
posted @ 2013-01-23 15:29 天纯蓝 阅读(615) 评论(0) 推荐(0)
摘要:NSBundle *mainBundle=[NSBundle mainBundle]; NSString * txtPath=[mainBundle pathForResource:@"badytype_index" ofType:@"txt"]; NSString *result=[[NSString alloc] initWithContentsOfFile:... 阅读全文
posted @ 2013-01-23 11:33 天纯蓝 阅读(156) 评论(0) 推荐(0)
摘要:-(NSString *) getHtmlToText:(NSString*) inputString{ NSString *result=[[NSString alloc] init]; result=inputString; NSRegularExpression *reg=[[NSRegularExpression alloc] init]; reg=[[NSRegularExpression alloc] initWithPattern:@"<([^>]+)>" options:NSRegularExpressionCaseInsensitive 阅读全文
posted @ 2013-01-23 11:29 天纯蓝 阅读(369) 评论(0) 推荐(0)
摘要:.h :头文件。头文件包含类,类型,函数和常数的声明。 .m :源代码文件。这是典型的源代码文件扩展名,可以包含Objective-C和C代码。 .mm :源代码文件。带有这种扩展名的源代码文件,除了可以包含Objective-C和C代码以外还可以包含C++代码。仅在你的Objective-C代码中确实需要使用C++类或者特性的时候才用这种扩展名 当你需要在源代码中包含头文件... 阅读全文
posted @ 2013-01-21 16:15 天纯蓝 阅读(13786) 评论(3) 推荐(1)
摘要:这破问题我还找了半天!!!!!!!!!! 错误如下: 严重: Unable to serialize delta request for sessionid [7C207DEBA5350582EFF4321AD3089918] java.io.NotSerializableException: org.apache.struts.upload.CommonsMultipartReque... 阅读全文
posted @ 2013-01-19 17:19 天纯蓝 阅读(1249) 评论(0) 推荐(0)
摘要:首先执行下面一段代码,得到锁定的进程: select t1.sid, t1.serial#, t1.username, t1.logon_time from v$session t1 , v$locked_object t2where t1.sid = t2.session_id order by t1.logon_time;可以得到进程的SID和SERIAL#序号,然后按照下列语句解锁:... 阅读全文
posted @ 2013-01-17 16:17 天纯蓝 阅读(224) 评论(0) 推荐(0)