上一页 1 2 3 4 5 6 7 ··· 45 下一页

2011年8月15日

流量统计

摘要: 而是通过函数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 风乔 阅读(454) 评论(0) 推荐(0) 编辑

重力感应

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

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

2011年8月13日

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 风乔 阅读(147) 评论(0) 推荐(0) 编辑

2011年8月10日

在UINavigationBar中添加左箭头返回按钮

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

posted @ 2011-08-10 17:46 风乔 阅读(741) 评论(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 风乔 阅读(296) 评论(0) 推荐(0) 编辑

2011年8月6日

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 风乔 阅读(198) 评论(0) 推荐(0) 编辑

nshttp 请求

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

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

2011年8月5日

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 风乔 阅读(111) 评论(0) 推荐(0) 编辑

2011年8月4日

格式化代码

摘要: left:command+[right:command+] 阅读全文

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

2011年8月2日

自定义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 风乔 阅读(49) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 45 下一页

导航