高德地图SDK(导航) V11.2.0501
Loading...
Searching...
No Matches
NSValue(NSValueMAGeometryExtensions) Category Reference

#include <MAGeometry.h>

Instance Methods

(MAMapPoint- MAMapPointValue
 返回NSValue对象包含的MAMapPoint结构体对象 Returns the MAMapPoint structure contained in the NSValue object
 
(MAMapSize- MAMapSizeValue
 返回NSValue对象包含的MAMapSize结构体对象 Returns the MAMapSize structure contained in the NSValue object
 
(MAMapRect- MAMapRectValue
 返回NSValue对象包含的MAMapRect结构体对象 Returns the MAMapRect structure contained in the NSValue object
 
(CLLocationCoordinate2D) - MACoordinateValue
 返回NSValue对象包含的CLLocationCoordinate2D结构体对象 Returns the CLLocationCoordinate2D structure contained in the NSValue object
 

Class Methods

(NSValue *) + valueWithMAMapPoint:
 创建 MAMapPoint 的NSValue对象 Create NSValue object for MAMapPoint
 
(NSValue *) + valueWithMAMapSize:
 创建 MAMapSize 的NSValue对象 Create NSValue object for MAMapSize
 
(NSValue *) + valueWithMAMapRect:
 创建 MAMapRect 的NSValue对象 Create NSValue object for MAMapRect
 
(NSValue *) + valueWithMACoordinate:
 创建 CLLocationCoordinate2D 的NSValue对象 Create NSValue object for CLLocationCoordinate2D
 

Detailed Description

utils方法,方便c结构体对象和NSValue对象间相互转化 utils method for convenient conversion between C struct objects and NSValue objects

Method Documentation

◆ MACoordinateValue

- (CLLocationCoordinate2D) MACoordinateValue

返回NSValue对象包含的CLLocationCoordinate2D结构体对象 Returns the CLLocationCoordinate2D structure contained in the NSValue object

Returns
当前对象包含的CLLocationCoordinate2D结构体对象 The CLLocationCoordinate2D structure contained in the current object

◆ MAMapPointValue

- (MAMapPoint) MAMapPointValue

返回NSValue对象包含的MAMapPoint结构体对象 Returns the MAMapPoint structure contained in the NSValue object

Returns
当前对象包含的MAMapPoint结构体对象 The MAMapPoint structure contained in the current object

◆ MAMapRectValue

- (MAMapRect) MAMapRectValue

返回NSValue对象包含的MAMapRect结构体对象 Returns the MAMapRect structure contained in the NSValue object

Returns
当前对象包含的MAMapRect结构体对象 The MAMapRect structure contained in the current object

◆ MAMapSizeValue

- (MAMapSize) MAMapSizeValue

返回NSValue对象包含的MAMapSize结构体对象 Returns the MAMapSize structure contained in the NSValue object

Returns
当前对象包含的MAMapSize结构体对象 The MAMapSize structure contained in the current object

◆ valueWithMACoordinate:

+ (NSValue *) valueWithMACoordinate: (CLLocationCoordinate2D)  coordinate

创建 CLLocationCoordinate2D 的NSValue对象 Create NSValue object for CLLocationCoordinate2D

Parameters
coordinateCLLocationCoordinate2D结构体对象 CLLocationCoordinate2D struct object
Returns
NSValue对象 NSValue object

◆ valueWithMAMapPoint:

+ (NSValue *) valueWithMAMapPoint: (MAMapPoint mapPoint

创建 MAMapPoint 的NSValue对象 Create NSValue object for MAMapPoint

Parameters
mapPointMAMapPoint结构体对象 MAMapPoint struct object
Returns
NSValue对象 NSValue object

◆ valueWithMAMapRect:

+ (NSValue *) valueWithMAMapRect: (MAMapRect mapRect

创建 MAMapRect 的NSValue对象 Create NSValue object for MAMapRect

Parameters
mapRectMAMapRect结构体对象 MAMapRect struct object
Returns
NSValue对象 NSValue object

◆ valueWithMAMapSize:

+ (NSValue *) valueWithMAMapSize: (MAMapSize mapSize

创建 MAMapSize 的NSValue对象 Create NSValue object for MAMapSize

Parameters
mapSizeMAMapSize结构体对象 MAMapSize struct object
Returns
NSValue对象 NSValue object

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