08 2011 档案

NSURLConnection 代理
摘要:@interfaceDownloadDelegate:NSObject-(void)connection:(NSURLConnection*)connection didReceiveResponse:(NSURLResponse*)response;-(void)connection:(NSURLConnection*)connection didReceiveData:(NSData*)dat... 阅读全文

posted @ 2011-08-30 21:41 风乔 阅读(179) 评论(0) 推荐(0)

获取当前位置
摘要:http://stackoverflow.com/questions/3535800/cllocationmanager-strange-memory-leak#import #import @protocol MapLocationManagerDelegate@required- (void)locationUpdate:(CLLocation *)location;- (void)loca... 阅读全文

posted @ 2011-08-30 17:56 风乔 阅读(272) 评论(0) 推荐(0)

背景图的按钮
摘要:UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeCustom]; [rightButton setBackgroundImage:[UIImage imageNamed:@"bgbtn.png"] forState:UIControlStateNormal]; [rightButton setTitle:@"完成" fo... 阅读全文

posted @ 2011-08-30 14:41 风乔 阅读(160) 评论(0) 推荐(0)

大头针飘移问题
摘要:- (MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:(id )annotation{ //在当前位置信息框上添加自定义按钮 MKPinAnnotationView *pinAnnotation = nil; //[self.mapView removeAnnotations:self.mapView.annotat... 阅读全文

posted @ 2011-08-30 11:33 风乔 阅读(175) 评论(0) 推荐(0)

xheditor for net
摘要:xhEditor开源HTML编辑器,精简迷你,使用简单,支持Word,基于jQuery,Ajax上传,远程抓图……For .Net:配置:upload.aspx saveremoteimg.aspx 两个里面: string attachdir = "../upload"; // 上传文件保存路径,结尾不要带/完毕!按官方文档设置,是没有上传功能的,可怜在网上找了好久,都... 阅读全文

posted @ 2011-08-26 18:23 风乔 阅读(311) 评论(0) 推荐(0)

平安亲人 测试数据
摘要:NSMutableString *str= [[NSMutableString alloc] initWithString:@""]; [str appendString:@""]; [str appendString:@"0"]; [str appendString:@""]; [str appendString:@""]; [str appendString:@"4008851189"]; ... 阅读全文

posted @ 2011-08-26 16:31 风乔 阅读(171) 评论(0) 推荐(0)

apple id
摘要:zzxap@163.comAp19840608 阅读全文

posted @ 2011-08-25 12:32 风乔 阅读(131) 评论(0) 推荐(0)

单例 全局变量
摘要:// MyCommon.h:@interface MyCommonclass MyCommon : NSObject{ int user;};@property(assign) int user;+ (MyCommon *)singleton;@end// MyCommon.m:@implementation MyCommonstatic MyCommon * MyCommon_Single... 阅读全文

posted @ 2011-08-25 11:10 风乔 阅读(237) 评论(0) 推荐(0)

图片库
摘要: 阅读全文

posted @ 2011-08-22 11:44 风乔 阅读(133) 评论(0) 推荐(0)

UIButton
摘要:UIButton *btnTrans = [UIButton buttonWithType:UIButtonTypeCustom]; [btnTrans setBackgroundImage:[UIImage imageNamed:@"btnAround.png"] forState:UIControlStateNormal]; [btnTrans setTitle:@"周边" forState:... 阅读全文

posted @ 2011-08-18 18:05 风乔 阅读(194) 评论(0) 推荐(0)

有很多图标的网站
摘要:http://www.iconfinder.com/ 阅读全文

posted @ 2011-08-18 17:04 风乔 阅读(133) 评论(0) 推荐(0)

NSMutableDictionary
摘要:NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; [dict setObject:@"John" forKey:@"Firstname"]; [dict setObject:@"Doe" forKey:@"Lastname"]; [dict setObject:@"info at objectgraph.com" for... 阅读全文

posted @ 2011-08-18 12:40 风乔 阅读(193) 评论(0) 推荐(0)

流量统计
摘要:而是通过函数getifaddrs来得到系统网络接口的信息..比如#include #include #include - (void) getInterfaceBytes{ struct ifaddrs *ifa_list = 0, *ifa; if (getifaddrs(&ifa_list) == -1) { return; } uint32_t ... 阅读全文

posted @ 2011-08-15 11:43 风乔 阅读(477) 评论(0) 推荐(0)

重力感应
摘要:呵呵,难得能遇到我可以解决的问题.我刚刚做好的程序用到这个.我来说明下吧XXXAppDelegate.m 中- (void)applicationDidFinishLaunching:(UIApplication *)application {glView.animationInterval = 1.0 / 60.0;[glView startAnimation];... 阅读全文

posted @ 2011-08-15 09:32 风乔 阅读(280) 评论(0) 推荐(0)

iphone 调试设置
摘要:Under under Project->Edit Active Executable -> Arguments tab -> Environment variables section I added and set to YES the following variables: NSAutoreleaseFreedObjectCheckEnabled, NSZombieEnabled NSDe... 阅读全文

posted @ 2011-08-13 10:52 风乔 阅读(165) 评论(0) 推荐(0)

在UINavigationBar中添加左箭头返回按钮
摘要:在iPhone里面最讨厌的控件之一就是UINavigationBar了。这个控件样式修改不方便,连添加按钮也特别麻烦。下面的例子是如何手动添加带箭头的按钮:UINavigationItem *item = [navBar.items objectAtIndex:0];UINavigationItem *back = [[UINavigationItem alloc] initWithTitle:@... 阅读全文

posted @ 2011-08-10 17:46 风乔 阅读(773) 评论(0) 推荐(0)

google local api
摘要://{"responseData":// {"results":[// {"GsearchResultClass":"GlocalSearch",// "viewportmode":"computed",// "listingType":"local",// "lat":"22.557413",// "lng":"113.940843",// "a 阅读全文

posted @ 2011-08-10 10:12 风乔 阅读(312) 评论(0) 推荐(0)

Gdataxml 例子
摘要:Butch 1 Fighter Shadow 2 Rogue Crak 3 Wizard NSError *error; NSData* xmlData= [xmlString dataUsingEncoding: NSASCIIStringEncoding]; GDataXMLDocument *doc = [[G... 阅读全文

posted @ 2011-08-06 16:42 风乔 阅读(211) 评论(0) 推荐(0)

nshttp 请求
摘要:urlReques=[[NSString stringWithFormat:@"%@userid=%@&isVisitCount=1&sign=%@",CarUrl,Userid,SignMd5] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"%@", urlReques); NSURL ... 阅读全文

posted @ 2011-08-06 10:52 风乔 阅读(242) 评论(0) 推荐(0)

ceshi
摘要:2011-08-30 09:55:27.490 inCarTime[2277:707] Parse p2p message OK.2011-08-30 09:55:27.495 inCarTime[2277:707] -[MessageRcv setOwnerUserID:]: unrecognized selector sent to instance 0x8ccb7c02011-08-30 0... 阅读全文

posted @ 2011-08-05 16:41 风乔 阅读(116) 评论(0) 推荐(0)

格式化代码
摘要:left:command+[right:command+] 阅读全文

posted @ 2011-08-04 15:51 风乔 阅读(120) 评论(0) 推荐(0)

自定义tablecell
摘要:UIButton *btnPoi = [[UIButton alloc] initWithFrame:CGRectMake(0, 20, 30, 44)]; [btnPoi setBackgroundImage:[UIImage imageNamed:@"poi.png"] forState:UIControlStateNormal]; [cell.contentVie... 阅读全文

posted @ 2011-08-02 17:13 风乔 阅读(54) 评论(0) 推荐(0)

异步获取地址
摘要:/根绝经纬度获取地点信息- (NSString*)GetAddressByCoordinate:(double)latitude longitude:(double)longitud{ NSLog(@"加载eeeeee"); NSString *ld = [[NSString alloc] initWithFormat:@"%f",latitude]; NSString *lt = [[NSStr... 阅读全文

posted @ 2011-08-02 09:48 风乔 阅读(94) 评论(0) 推荐(0)

导航