摘要: 在iOS6以后Orientation可以在plist文件里面进行设置。设置项是“Supported interface orientations”。如果在iOS5或者一下版本UIViewController类默认支持Portrait only,要支持其他Orientation,需要重写shouldAutorotateToInterfaceOrientation:方法。- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) orientation{ return UIInterfaceOrientati. 阅读全文
posted @ 2013-01-03 19:28 Jake Lin 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 显示图片也有点绕,代码如下://生成一个NSURLnextDraw.imageUrl=[NSURLURLWithString:@"ddddd.png"relativeToURL:[NSURLURLWithString:@"http://ggggggggg.com/"]];//获取UIImage控件,可以是IBOutletUIImageView * imageNextDraw = (UIImageView *)[cell viewWithTag:103];//同步下载到NSDataNSData* data = [NSData dataWithContent 阅读全文
posted @ 2013-01-03 13:47 Jake Lin 阅读(4033) 评论(0) 推荐(0) 编辑