BaiduMap_IOSSDK_v6.5.5doc_Docs  6.5.5
构造函数 | 类方法 | 所有成员列表
NSValue(BMKGeometryExtension)分类 参考

地图中c结构体对象和NSValue对象间相互转化 更多...

#import <BMKGeometry.h>

构造函数

(BMKMapPoint- BMKMapPointValue
 
(BMKMapSize- BMKMapSizeValue
 
(BMKMapRect- BMKMapRectValue
 
(CLLocationCoordinate2D) - Coordinate2DValue
 

类方法

(NSValue *) + valueWithBMKMapPoint:
 
(NSValue *) + valueWithBMKMapSize:
 
(NSValue *) + valueWithBMKMapRect:
 
(NSValue *) + valueWithCoordinate2D:
 

详细描述

地图中c结构体对象和NSValue对象间相互转化

函数文档

◆ BMKMapPointValue

- (BMKMapPoint) BMKMapPointValue

NSValue对象转BMKMapPoint结构体对象

返回
BMKMapPoint结构体对象

◆ BMKMapRectValue

- (BMKMapRect) BMKMapRectValue

NSValue对象转BMKMapRect结构体对象

返回
BMKMapRect结构体对象

◆ BMKMapSizeValue

- (BMKMapSize) BMKMapSizeValue

NSValue对象转BMKMapSize结构体对象

返回
BMKMapSize结构体对象

◆ Coordinate2DValue

- (CLLocationCoordinate2D) Coordinate2DValue

NSValue对象转CLLocationCoordinate2D结构体对象

返回
CLLocationCoordinate2D结构体对象

◆ valueWithBMKMapPoint:

+ (NSValue *) valueWithBMKMapPoint: (BMKMapPoint mapPoint

BMKMapPoint转NSValue

参数
mapPointBMKMapPoint结构体对象
返回
NSValue对象

◆ valueWithBMKMapRect:

+ (NSValue *) valueWithBMKMapRect: (BMKMapRect mapRect

BMKMapRect转NSValue

参数
mapRectBMKMapRect结构体对象
返回
NSValue对象

◆ valueWithBMKMapSize:

+ (NSValue *) valueWithBMKMapSize: (BMKMapSize mapSize

BMKMapSize转NSValue

参数
mapSizeBMKMapSize结构体对象
返回
NSValue对象

◆ valueWithCoordinate2D:

+ (NSValue *) valueWithCoordinate2D: (CLLocationCoordinate2D)  coordinate

CLLocationCoordinate2D转NSValue

参数
coordinateCLLocationCoordinate2D结构体对象
返回
NSValue对象

该分类的文档由以下文件生成: