摘要: AQGridViewCell在init的时候必须设置好frame,否则即使你看到内容,那你也点击不到,因为他的size未必对,只是内容没有被clipped所以才看到。还有就是可以通过[[NSBundle mainBundle] loadNib。。。]的方式来加载nib到gridCell中。 阅读全文
posted @ 2013-03-26 00:22 环宇者 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 参考http://my.oschina.net/heguangdong/blog/17443但文件名都改了,规则改成如下:google_apis-16_r03.zipandroid-16_r03.zip 阅读全文
posted @ 2012-11-14 00:20 环宇者 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 假设要加载的Class为MyNibView,xib中必须将File Owner设置成NSObject而非MyNibView!这里我还不是很清楚什么原因,估计是由于Nib的file owner为nil或者其他值(有谁知道请告知,先谢谢了)。将顶层的UIView的class设置成MyNibView,并通过他设置IBOutlet的映射关系。顶层的UIView则会被加载后放到数组的第一个位置。下面是一个Load From Nib的UIViewCategory,挺好用的。https://github.com/grantjk/UIView-JGANibLoading 阅读全文
posted @ 2012-09-23 23:22 环宇者 阅读(2422) 评论(0) 推荐(0) 编辑
摘要: http://longtimenoc.com/archives/%E7%94%A8nszombieenabled%E8%A7%A3%E5%86%B3%E6%81%BC%E4%BA%BA%E7%9A%84exc_bad_access%E9%94%99%E8%AF%AF 阅读全文
posted @ 2012-04-01 17:10 环宇者 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 晚上提交app的时候总是报出icon的错误iPad: Icon.png: icon dimensions (0 x 0) don’t meet the size requirements. The icon file must be 72×72 pixels起初以为图片坏了, 后来才发现好像是 10.7.3 的系统bug修复方法:将Compress PNG Files 设置为 NO 阅读全文
posted @ 2012-02-17 10:58 环宇者 阅读(161) 评论(0) 推荐(0) 编辑
摘要: @synthesize selectedRegion=_selectedRegion;in the breakproint catch,enter:po [self selectedRegion]will print selectedRegion.PS: po means print object 阅读全文
posted @ 2012-01-10 01:34 环宇者 阅读(157) 评论(0) 推荐(0) 编辑
摘要: While you encounter NSRangeException in NSArray objectAtIndex,By default you can't see where it happened, only got this exception message.To see where it raise, go to breakpoints view(Cmd+6), presss + to catch all exception. 阅读全文
posted @ 2012-01-09 22:21 环宇者 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Test of etco 阅读全文
posted @ 2010-12-22 14:39 环宇者 阅读(147) 评论(0) 推荐(0) 编辑
摘要: problems:1. missing sentinel in function callUIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Date and Time Selected" message:msg delegate:nil cancelButtonTitle:@"Yes, I did" otherButtonTitles:@"other Button", nil];//parameter otherButtonTitles is type like format... in NSLog, so the last n 阅读全文
posted @ 2010-12-05 19:11 环宇者 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Abstract: Unicode, ASCII 是一种编码表,即 文字X <==> 代码点U+ABCD, 他们不管如何存储。 UCS-2,UCS-4 则是一种代码点描述的规范,UCS-2用2个字节,UCS-4用4个字节。 UTF-8,UTF-16(GBK,GB2312)是用来表示如何存储这些代码点,注:UTF-*是Unicode的实现,而GBK是GB2312的超集,跟Unico... 阅读全文
posted @ 2010-10-11 14:42 环宇者 阅读(234) 评论(0) 推荐(0) 编辑