摘要: 一,修改状态栏:1.加入[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];但此方法只是不显示状态条,状态条所占用的空间仍然存在。2.可以修改Info.plist文件,在info.plist文件中加入一条新键值,命名为:UIStatusBarHidden;选择Valuetype为Boolean,而后重新编译运... 阅读全文
posted @ 2010-11-16 10:45 SsQq 阅读(471) 评论(0) 推荐(0) 编辑
摘要: (void)cutOutImage:(UIImage*)cutedImage{//设置要保存图片的大小CGSizesubImageSize=cutLocation.textureRect.size;//初始化一个矩形,这个矩形是设置剪贴以后图片得大小CGRectsubImageRect=CGRectMake(KcutStartX,KcutStartY,KcutWidth,KcutHeight);C... 阅读全文
posted @ 2010-11-16 10:45 SsQq 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 文件保存策略:一般有三中方法:1,属性列表,2,对象归档,3,iphone的嵌入式数据库库(sqLite3)1,属性列表存储文件://获取文档目录,NSDocumentDirectory表示我们查找Documents目录的路径,NSUserDomainMask表示我们的搜索范围只能在我们的应用程序沙盒当中,NSArray*path=NSSearchPathForDirectoriesInDomai... 阅读全文
posted @ 2010-11-16 10:44 SsQq 阅读(1426) 评论(0) 推荐(0) 编辑
摘要: //// FirstViewController.m// Swayable_test_zk//// Created by zhangkun on 9/3/10.// Copyright __MyCompanyName__ 2010. All rights reserved.//#import"FirstViewController.h"#import"Swayable_test_zkAppDele... 阅读全文
posted @ 2010-11-16 10:43 SsQq 阅读(792) 评论(0) 推荐(0) 编辑
摘要: #import<Foundation/Foundation.h>@interfaceRequestOperation : NSOperation{NSURLRequest*_request;NSMutableData *_data;NSString*message;}@property(nonatomic,retain)NSString *message;-(id)initWithRe... 阅读全文
posted @ 2010-11-16 10:43 SsQq 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 这个是一段xml文件,下面要做的是解析这个xml文件。<pigletlist><piglet id="1"> <name>Nifnif</name></piglet><piglet id="2"> <name>Nufnuf</name></piglet><piglet id="3"&g... 阅读全文
posted @ 2010-11-16 10:42 SsQq 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: #import<UIKit/UIKit.h>@classPDFTestViewController;@interfacePDFView : UIView {//这个类封装了PDF画图得所有信息CGPDFDocumentRefpdf;//PDFDocument中得一页CGPDFPageRefpage;//总共页数inttotalPages;//当前得页面intcurrentPage;PD... 阅读全文
posted @ 2010-11-16 10:41 SsQq 阅读(422) 评论(0) 推荐(0) 编辑
摘要: int i;NSDictionary *dic = [NSDictionarydictionaryWithObject:@"name=value; path=/; domain=.test.com;, name2=value2; path=/;" forKey:@"Set-Cookie"];NSArray *cookies = [NSHTTPCookie cookiesWithResponseHe... 阅读全文
posted @ 2010-11-16 10:39 SsQq 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 使用CLLocationManager类,MKMapView。并且实现<MKMapViewDelegate,CLLocationManagerDelegate>//初始化CLLocationManager,CLLocationManager获得当前地理坐标locmanager=[[CLLocationManager alloc] init];[locmanager setDelegat... 阅读全文
posted @ 2010-11-16 10:37 SsQq 阅读(791) 评论(0) 推荐(0) 编辑
摘要: UIActionSheet *actionSheet=[[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Take Photo",@"Choose From Library",nil];act... 阅读全文
posted @ 2010-11-16 10:34 SsQq 阅读(773) 评论(0) 推荐(0) 编辑