iOS高德轻量版地图SDK  1.2.0
NSValue(NSValueMAGeometryExtensions) Category Reference

utils方法,方便c结构体对象和NSValue对象间相互转化 More...

#import <MAGeometry.h>

Instance Methods

(MAMapPoint- MAMapPointValue
 返回NSValue对象包含的MAMapPoint结构体对象 More...
 
(MAMapSize- MAMapSizeValue
 返回NSValue对象包含的MAMapSize结构体对象 More...
 
(MAMapRect- MAMapRectValue
 返回NSValue对象包含的MAMapRect结构体对象 More...
 
(CLLocationCoordinate2D) - MACoordinateValue
 返回NSValue对象包含的CLLocationCoordinate2D结构体对象 More...
 

Class Methods

(NSValue *) + valueWithMAMapPoint:
 创建 MAMapPoint 的NSValue对象 More...
 
(NSValue *) + valueWithMAMapSize:
 创建 MAMapSize 的NSValue对象 More...
 
(NSValue *) + valueWithMAMapRect:
 创建 MAMapRect 的NSValue对象 More...
 
(NSValue *) + valueWithMACoordinate:
 创建 CLLocationCoordinate2D 的NSValue对象 More...
 

Detailed Description

utils方法,方便c结构体对象和NSValue对象间相互转化

Method Documentation

◆ MACoordinateValue

- (CLLocationCoordinate2D) MACoordinateValue

返回NSValue对象包含的CLLocationCoordinate2D结构体对象

Returns
当前对象包含的CLLocationCoordinate2D结构体对象

◆ MAMapPointValue

- (MAMapPoint) MAMapPointValue

返回NSValue对象包含的MAMapPoint结构体对象

Returns
当前对象包含的MAMapPoint结构体对象

◆ MAMapRectValue

- (MAMapRect) MAMapRectValue

返回NSValue对象包含的MAMapRect结构体对象

Returns
当前对象包含的MAMapRect结构体对象

◆ MAMapSizeValue

- (MAMapSize) MAMapSizeValue

返回NSValue对象包含的MAMapSize结构体对象

Returns
当前对象包含的MAMapSize结构体对象

◆ valueWithMACoordinate:

+ (NSValue *) valueWithMACoordinate: (CLLocationCoordinate2D)  coordinate

创建 CLLocationCoordinate2D 的NSValue对象

Parameters
coordinateCLLocationCoordinate2D结构体对象
Returns
NSValue对象

◆ valueWithMAMapPoint:

+ (NSValue *) valueWithMAMapPoint: (MAMapPoint mapPoint

创建 MAMapPoint 的NSValue对象

Parameters
mapPointMAMapPoint结构体对象
Returns
NSValue对象

◆ valueWithMAMapRect:

+ (NSValue *) valueWithMAMapRect: (MAMapRect mapRect

创建 MAMapRect 的NSValue对象

Parameters
mapRectMAMapRect结构体对象
Returns
NSValue对象

◆ valueWithMAMapSize:

+ (NSValue *) valueWithMAMapSize: (MAMapSize mapSize

创建 MAMapSize 的NSValue对象

Parameters
mapSizeMAMapSize结构体对象
Returns
NSValue对象

The documentation for this category was generated from the following file:
© 2020 高德信息技术有限公司版权所有,保留所有权利。