随笔分类 -  iOS 地图

摘要:#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager*manager;@property (weak, nonatomic) IBOutle... 阅读全文
posted @ 2015-07-17 22:04 汤冉阳 阅读(233) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import #import "MYAnnotation.h"@interface ViewController ()@property(nonatomic,strong)CLLocationManager *mag;@property(nona... 阅读全文
posted @ 2015-07-17 22:00 汤冉阳 阅读(373) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager*manager;;@property(nonatomic,strong)CLLocat... 阅读全文
posted @ 2015-07-17 21:59 汤冉阳 阅读(325) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,weak)UITextField*destination;@end@implementation ViewController- (vo... 阅读全文
posted @ 2015-07-17 21:58 汤冉阳 阅读(273) 评论(0) 推荐(0)
摘要:只要用于获取用户位置都要取得用户授权#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)UITextField*destination;@property(nonatomic... 阅读全文
posted @ 2015-07-17 21:56 汤冉阳 阅读(363) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import @interface ViewController ()@property(nonatomic,strong)CLLocationManager *manager;@end@implementation ViewController... 阅读全文
posted @ 2015-07-17 21:54 汤冉阳 阅读(190) 评论(0) 推荐(0)
摘要:1.添加MapKit.framework框架 ,在plist中添加字段,用于,获取用户当前位置设置 NSLocationAlwaysUsageDescription2.代码#import "ViewController.h"#import @interface ViewController ()@p... 阅读全文
posted @ 2015-07-17 21:51 汤冉阳 阅读(1156) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import @interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; //地理编码 [... 阅读全文
posted @ 2015-07-17 20:30 汤冉阳 阅读(183) 评论(0) 推荐(0)
摘要:1. ios7只要开始定位,系统就会自动要求你对应用程序授权 ios8之后,必须要代码中实现要求用户对应用程序授权 ,在plist中添加以下两个属性 NSLocationWhenInUseDescription,允许在前台获取GPS的描述 NSLocationAlwaysUsageDesc... 阅读全文
posted @ 2015-07-17 20:27 汤冉阳 阅读(266) 评论(0) 推荐(0)