07 2011 档案

发送HttpRequest请求
摘要:在开发应用程序的时候,特别是当今网络特别充足和重要的时候,网络应用和桌面应用史无前例的整合起来,其界限也越来越模糊。所以网络应用可以向桌面应用开放API,然后桌面应用去调用,这样可以方便的维护一份代码,并且可以push更新到用户手里。而在设计的时候,通常情况下都是客户端发送相应的Http请求,并包含某些内容,发送完毕之后,等待服务器端的响应。而在服务器端,得到请求的内容并生成相应的结果返回即可。虽... 阅读全文

posted @ 2011-07-30 08:40 风乔 阅读(775) 评论(0) 推荐(0)

P2P NAT穿透技术
摘要:前几天在做一个文件点对点传输的项目,涉及到NAT穿透,从上个星期到今天一直在调试和测试,最后到今天,看来已经战败!以下是两篇是我作为技术依据的文章:http://blog.csdn.net/ssihc0/archive/2008/10/10/3053395.aspxhttp://hi.baidu.com/wangzhe1945/blog/item/3e72fffe47fc2f365d60080c... 阅读全文

posted @ 2011-07-29 14:54 风乔 阅读(716) 评论(1) 推荐(0)

uitoolbar 圆角
摘要:#import // myToolBar.clipsToBounds=YES;// CALayer *l=myToolBar.layer;// // set corner radious// [l setCornerRadius:10];// // to apply border on corners// [l setBorderColor:[[UIColor c... 阅读全文

posted @ 2011-07-27 17:36 风乔 阅读(133) 评论(0) 推荐(0)

uitoolbar 删除背景
摘要:[myToolBar setBackgroundColor:[UIColor clearColor]]; @end后面加上 @implementation UIToolbar(Transparent)-(void)drawRect:(CGRect)rect { // do nothing in here}@end 阅读全文

posted @ 2011-07-27 17:24 风乔 阅读(213) 评论(0) 推荐(0)

UINavagationBar,UISearchBar,UIToolBar,UITabBar 自定义 Background Image
摘要:这里运用了 object-c里面的一个类别,大体意思就是在不知道苹果封装起来的API内容的情况下,在外部程序中覆盖其原来的函数。大体这个意思吧。程序代码: 在程序的任何一个 .m文件 后面加上下面代码即可 记住 要在 @end 的后面加上。UINavigationBar:@implementation UINavigationBar (CustomImage2) - (void)drawRec... 阅读全文

posted @ 2011-07-27 17:17 风乔 阅读(367) 评论(0) 推荐(0)

mapview 标注多个地点
摘要:Very new to xcode and somewhat confused. I was able to use a custom image for annotation - works fine. Problem is that I want to do is have a different images for each of the annotations. What should... 阅读全文

posted @ 2011-07-27 16:03 风乔 阅读(279) 评论(0) 推荐(0)

uisearchbar 去除背景
摘要:[searchBar setBackgroundColor:[UIColor clearColor]]; for (UIView *subview in searchBar.subviews) { if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")]) [subview removeFromSuperv... 阅读全文

posted @ 2011-07-26 11:26 风乔 阅读(99) 评论(0) 推荐(0)

c/c++ 笔试题
摘要:http://blog.csdn.net/vincetest/article/details/1409563 阅读全文

posted @ 2011-07-21 10:48 风乔 阅读(55) 评论(0) 推荐(0)

json
摘要:{"responseData": {"results": [{"GsearchResultClass":"GlocalSearch", "viewportmode":"computed", "listingType":"local", "lat":"22.171205", "lng":"113.464101", "accuracy":&q 阅读全文

posted @ 2011-07-19 16:02 风乔 阅读(73) 评论(0) 推荐(0)

使用HTTP请求 查找指定位置附近的景点(GOOGLE 地图)
摘要:使用HTTP请求 查找指定位置附近的景点(GOOGLE 地图)最近在做信息图形化的时候有一个需求,就是查找指定地点附近的相关建筑物或者景点。使用google地图的时候发现有这个功能,但是api没有说明如何使用。于是使用抓包工具抓取了google地图的http请求,得出请求格式如下:http://ditu.google.cn/maps?q=地点类型&g=查询关键字&output=kml (或者是js... 阅读全文

posted @ 2011-07-18 21:39 风乔 阅读(629) 评论(0) 推荐(0)

iphone 窗体传值
摘要:子窗口// header file@property (nonatomic, copy) NSString *example;// .m file@synthesize example;父窗口// when you create the objectNewItemController *item = [[NewItemController alloc] init];item.example = @... 阅读全文

posted @ 2011-07-18 16:06 风乔 阅读(140) 评论(0) 推荐(0)

iphone 反向地理解析 从坐标获得用户的具体位置信息
摘要:http://blog.csdn.net/tangaowen/article/details/6527907 阅读全文

posted @ 2011-07-16 19:37 风乔 阅读(142) 评论(0) 推荐(0)

cocoa 创建线程
摘要:Threading1. Create the new thread:[NSThread detachNewThreadSelector:@selector(myMethod) toTarget:self withObject:nil]; 2. Create the method that is called by the new thread:- (void)myMethod { NS... 阅读全文

posted @ 2011-07-15 15:39 风乔 阅读(225) 评论(0) 推荐(0)

Google Map上,加上座標點(POIs)
摘要:標:在前一個範例中建立的Google Map上,加上座標點(POIs),當點選座標點會觸發對應的event。☉限制:必須將iPhone的作業系統更新到OS 3.0版本,開發使用的SDK也要是SDK 3.0才有內建Mapkit Framework。☉效果畫面:☉步驟說明:在地圖上每一個座標點,都是一個MKAnnotationView,也就是UI。而每一個MKAnnotationView都... 阅读全文

posted @ 2011-07-15 09:55 风乔 阅读(99) 评论(0) 推荐(0)

使用NSOperation和NSOperationQueue启动多线程
摘要:使用NSOperation和NSOperationQueue启动多线程在app store中的很多应用程序非常的笨重,他们有好的界面,但操作性很差,比如说当程序从网上或本地载入数据的时候,界面被冻结了,用户只能等程序完全载入数据之后才能进行操作。当打开一个应用程序时,iphone会产生一个包含main方法的线程,所用程序中的界面都是运行在这个线程之中的(table views, tab bars,... 阅读全文

posted @ 2011-07-14 10:51 风乔 阅读(236) 评论(0) 推荐(0)

iphone http同步 异步请求
摘要:第一段是透明兄寫得 ^ ^ / 感謝~这个只是異步请求,NSMutableData* buf = [[NSMutableData alloc] initWithLength:0];NSURLConnection* connection = [[NSURLConnection alloc] initWithRequest:req delegate:self];// 收到响应时, 会触发- (vo... 阅读全文

posted @ 2011-07-14 09:17 风乔 阅读(225) 评论(0) 推荐(0)

iphone 计算大文件md5
摘要:+(NSString*)fileMD5:(NSString*)path{ NSFileHandle *handle = [NSFileHandle fileHandleForReadingAtPath:path]; if( handle== nil ) return @"ERROR GETTING FILE MD5"; // file didnt exist CC_MD5_CT... 阅读全文

posted @ 2011-07-14 09:16 风乔 阅读(283) 评论(0) 推荐(0)

自动创建 按钮和搜索框
摘要:- (IBAction) CreatedToolbar{ [[searchBar.subviews objectAtIndex:0]removeFromSuperview]; //[[toolBar.subviews objectAtIndex:0]removeFromSuperview]; //toolBar.backgroundColor = [UIColor redColor]; toolB... 阅读全文

posted @ 2011-07-13 16:25 风乔 阅读(83) 评论(0) 推荐(0)

c#多线程下载
摘要:http://software.intel.com/zh-cn/blogs/2011/05/04/aspnetchttp/?cid=sw:prccsdn1682 阅读全文

posted @ 2011-07-13 14:07 风乔 阅读(185) 评论(0) 推荐(0)

svn
摘要:https://192.168.5.25:8443/svn/LW_SERVER/SVN_SVR/iPhone/ShoujiUIDemo 阅读全文

posted @ 2011-07-13 09:23 风乔 阅读(346) 评论(0) 推荐(0)

iphone web显示google地图
摘要:在含有地图导航功能的 App 中显示乘车信息的话,可以通过 UIView 中显示 Google Map 信息的方法实现,显示结果如下: 实现的方法很简单: 首先创建一个view-base工程,声明UIView变量: #import @interface iphone_mpaViewController : UIViewController {IBOutle... 阅读全文

posted @ 2011-07-12 11:37 风乔 阅读(321) 评论(0) 推荐(0)

iphone如何进入和退出一个模态的View
摘要:iphone如何显示一个模态的View 1。首先,要被显示的ViewController,要定义一个 变量: UIViewController * theApp; 和一个函数: //设置RootController - (void)sha... 阅读全文

posted @ 2011-07-08 15:37 风乔 阅读(291) 评论(0) 推荐(0)

iphone点击空白隐藏键盘
摘要:-(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event{ UITouch*touch =[touches anyObject]; if(touch.phase==UITouchPhaseBegan){ //find first response view for(UIView*vi... 阅读全文

posted @ 2011-07-08 15:24 风乔 阅读(284) 评论(0) 推荐(0)

如何实现 对输入框的文本内容进行限制的功能
摘要:如何实现 对输入框的文本内容进行限制的功能 如何实现 对输入框的文本内容进行限制的功能1. 如何实现对UITextField ,UITextView等输入框的 字数限制 (1)首先,肯定要 让controller 实现 UITextFieldDelegate (针对UITextField)或者 UITextViewDelegate(针对UITextView)... 阅读全文

posted @ 2011-07-08 14:45 风乔 阅读(329) 评论(0) 推荐(0)

UITableView 基本使用方法总结
摘要:UITableView 基本使用方法总结UITableView 基本使用方法 1. 首先,Controller需要实现两个 delegate ,分别是 UITableViewDelegate 和 UITableViewDataSource 2.然后 UITableView对象的 delegate要设置为 self。 3. 然后就可以实现这些deleg... 阅读全文

posted @ 2011-07-08 14:44 风乔 阅读(232) 评论(0) 推荐(0)

回顾我的职业生涯
摘要:刚毕业时连asp的增删改也不会,也不知道大学干嘛去了。第一份工作是ERP开发,是一个澳大利亚的老板,跟他说了几句英语,也不管我会不会ERP,就叫我去上班了。还请伙吃了一顿西餐。由于自己那时候技术积累基本为零,抱着一本书学ASP,还要了解工作流程,采购 销售 生产,就我一个人负责开发。实在头晕,于是灰溜溜的自动要求离职,拿着毕业胡第一份薪水,2千多元走人了。第二份工作是网管,主要维护电... 阅读全文

posted @ 2011-07-04 14:28 风乔 阅读(250) 评论(0) 推荐(0)

导航