获取当前经纬度方法 (转载)
摘要:转载自:http://www.cocoachina.com/bbs/read.php?tid-5845.html首先头文件应继承CLLocationManagerDelegate.并:#import <CoreLocation/CoreLocation.h>响应事件中写如下代码:CLLocationManager *_locManager = [[CLLocationManager alloc] init];[_locManager setDelegate:self];[_locManager setDesiredAccuracy:kCLLocationAccuracyBest];
阅读全文
万能的iPhone等待画面
摘要:[UIApplication sharedApplication].networkActivityIndicatorVisible = YES; Then to show it use something like:[[WPActivityIndicatorsharedActivityIndicator]show];And hide with:[[WPActivityIndicatorsharedActivityIndicator]hide];为了改善程序的用户友好性,当你的iPhone程序需要执行稍稍花点时间的处理的时候,我想显示一个标准的iPhone等待画面是最合适的。那这里咱们...
阅读全文
iphone-15-dismissModalViewControllerAnimated不起作用
摘要:转载自:http://blog.sina.com.cn/s/blog_61e26bcb0100whkb.htmldismissModalViewControllerAnimated不起作用是因为你调用presentModalViewController方法的是这个uiviewcontroller,那你就必须通过调用这个uiviewcontroller的dismissModalViewControllerAnimated方法,才可以起作用。
阅读全文
iphone开发-地图注解(地图上的大头针)(转载)
摘要:转载自:http://blog.sina.com.cn/s/blog_8c23dc160100xtq7.htmlCocoa Touch 没有提供地图注解类,只定义了一个 MKAnnotation 协议。要创建地图注解,必须设计符合MKAnnotation 协议的类,该类需要一个CLLocationCoordinate2Dcoordinate属性,以及 title 和 subtitle 实例方法,一. 设计注解类:例,注解(大头针)类:.h#import<MapKit/MapKit.h>@interfaceLocationObject : NSObject <MKAnnotat
阅读全文
xcode 4 制作静态库详解(转载)
摘要:转载自:http://blog.csdn.net/pjk1129/article/details/7255163最近在做Apple的IOS开发,有开发静态库的需求,本身IOS的开发,只允许静态库或者Framework。在Xcode上没有找到允许编译,如同Android上的*.so和Win32上的dll这样的说法。不过Framework这样的框架,估计也是类似动态库的实现,不过没有具体研究过,后续继续深入研究。我这个文档的静态库的开发是基于Xcode4.2和iOS SDK5.0编写的。Xcode4跟之前的Xcode3还是有不少的差别的。下面就简单写一个静态库和一个调用静态库的例子。静态库的编写:
阅读全文
收藏几个学习博客
摘要:http://iwins.blog.51cto.com/735853/243189http://tech.it168.com/a2009/1229/830/000000830741.shtmlhttp://www.cnblogs.com/zhw511006/archive/2011/12/06/2278175.html
阅读全文
Pop and push the same view does not invoke the viewWillAppear() method (转载)
摘要:转载自:http://stackoverflow.com/questions/6625493/pop-and-push-the-same-view-does-not-invoke-the-viewwillappear-methodPop and push the same view does not invoke the viewWillAppear() methodup vote2down votefavoriteshare [g+]share [fb]share [tw]When I receive a local notification i do the following:- (vo
阅读全文