上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: imageView.contentMode = UIViewContentModeScaleAspectFit; 阅读全文
posted @ 2013-01-06 09:16 废弃账号 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 目的:使segment上每一个Item的title可以换行显示。 方法:在segment control上蒙一层label,控制label,让label的text换行显示。 遇到的困难:无法将label放置在segment上。 分析原因:一开始我就犯了一个错,那就是把mySegment作... 阅读全文
posted @ 2013-01-05 14:24 废弃账号 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #import @interface TestGestureRecognizerViewController : UIViewController { UIView *aView;}@property(nonatomic,retain)IBOutlet UIView *aView;@end... 阅读全文
posted @ 2013-01-05 14:21 废弃账号 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.修改工程名:直接选中工程名点一下,就像修改名称夹名称一样简单了。 2.导入旧工程解决xcode4.5以后模拟器屏幕不旋转的问题 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) se... 阅读全文
posted @ 2013-01-05 09:50 废弃账号 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://www.zdoz.net ziparchive是基于开源代码”MiniZip”的zip压缩与解压的Objective-C 的Class,使用起来非常的简单 方法:从http://code.google.com/p/ziparchive/ 上下载ZipArchive.zip,解压后将... 阅读全文
posted @ 2013-01-04 16:59 废弃账号 阅读(333) 评论(0) 推荐(0) 编辑
摘要: #import #import #import @interface mylocation : UIViewController@property (retain, nonatomic) IBOutlet MKMapView *m_map;- (IBAction)return:(id)sende... 阅读全文
posted @ 2012-12-29 15:21 废弃账号 阅读(183) 评论(0) 推荐(0) 编辑
摘要: //获得某个window的某个subViewUIView *view = [[[[[UIApplication sharedApplication] windows] objectAtIndex:0] subviews] lastObject];NSInteger index = 0;//用来给... 阅读全文
posted @ 2012-12-29 11:09 废弃账号 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://www.zdoz.net 尽管iPhone不允许同时运行两个应用程序,我们可以从自己的应用程序中启动另一个应用程序,并且可以在应用程序之间共享数据。我们可以使用UIApplication类的openURL:方法从一个应用程序来启动另一个应用程序。例如,要在Safari应用程序... 阅读全文
posted @ 2012-12-29 11:05 废弃账号 阅读(192) 评论(0) 推荐(0) 编辑
摘要: //// MoveScaleImageController.h// MoveScaleImage//// Created by on 12-4-24.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#imp... 阅读全文
posted @ 2012-12-28 16:19 废弃账号 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 在开发iPhone程序时,有时候要对文件进行一些操作。而获取某一个目录中的所有文件列表,是基本操作之一。通过下面这段代码,就可以获取一个目录内的文件及文件夹列表。 NSFileManager *fileManager = [NSFileManager defaultManager]; //在... 阅读全文
posted @ 2012-12-27 17:40 废弃账号 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页