2011年8月30日

NSURLConnection 代理

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

posted @ 2011-08-30 21:41 风乔 阅读(171) 评论(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 风乔 阅读(259) 评论(0) 推荐(0) 编辑

背景图的按钮

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

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

大头针飘移问题

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

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

导航