在我的iOS App中捕获这样的错误日志,什么原因呢?
摘要: 2011-04-18 上午10点Thread 0 Crashed:0 libobjc.A.dylib 0x33a06466 objc_msgSend + 181 UIKit 0x313bdffe -[UIApplication _cancelGestureRecognizersForView:] + 182 UIKit 0x313b22e2 -[UIView(Hierarchy) _willMoveToWindow:] + 343 CoreFoundation 0x30435fe6 -[NSObject(NSObject) performSelector:withObject:withObje
阅读全文
posted @
2011-04-18 10:23 不及格的程序员-八神 阅读(156) |
评论 (0) 编辑
.Net Framework Json序列化的方式比较
摘要: "<p><a href=\"http://www.google.com\">google</a><img src=\"http://pic.cnblogs.com\" /></p>"同样一段html代码使用两种序列化方式有不同的结果.DataContractJsonSerializer 与 JavaScriptSerializer 结果分别为:"<p><a href=\"http:\/\/www.google.com\">
阅读全文
posted @
2011-04-12 13:18 不及格的程序员-八神 阅读(287) |
评论 (0) 编辑
一个UINavigationController和UITabBarController的小秘密.
摘要: 在UITabBarController设置自定义视图控制器时,导航类型为UINavigationController时,当你push一个不是当前活动tab控制器时,tab视图控制器不会有动作,但当你切换到那个tab控制器时,之前push的视图这时才会显示出来...,被delay了.
阅读全文
posted @
2011-04-09 11:07 不及格的程序员-八神 阅读(370) |
评论 (0) 编辑
今天是星期几,从iOS API 到 .net Framework.
摘要: 早已不用Javascript/VBscript获取星期几的函数了,getDay/Weekday.它们功能太单一,而且不扶持本地化.在iOS中获取某日期的API:NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];dateFormatter.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"zh-CN"] autorelease];[dateFormatter setDateFormat: @"yyyy.MM.dd EEEE&quo
阅读全文
posted @
2011-04-01 11:23 不及格的程序员-八神 阅读(1703) |
评论 (1) 编辑