摘要:
//系统的大头针 MKPinAnnotationView * pin = [[MKPinAnnotationView alloc]init]; 系统的大头针 可以就该大头针的颜色 等等 阅读全文
摘要:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //定位 CLGeocoder * gercode = [[CLGeocoder alloc]init]; self.gercode = gercode; //地理编码 [gercode geocod... 阅读全文
摘要:
#import "ViewController.h" #import #import @interface ViewController () @property(nonatomic ,strong)MKMapView * map; @end @implementation ViewController - (void)viewDidLoad { [super vie... 阅读全文
摘要:
Objective C的runtime技术功能非常强大,能够在运行时获取并修改类的各种信息,包括获取方法列表、属性列表、变量列表,修改方法、属性,增加方法,属性等等,本文对相关的几个要点做了一个小结。 目录: (1)使用class_replaceMethod/class_addMethod函数在运行 阅读全文