import <Foundation/Foundation.h>
import"BMKAnnotation.h"
@interface BMKShape : NSObject <BMKAnnotation> {
@package
NSString *_title;
NSString *_subtitle;
}
我没有将@package 转换为.NET 代码!
最佳答案
关于 @package 的 Apple ObjectiveC 文档状态:
@package is a new instance variable protection class, like @public and @protected.
@package instance variables behave as follows:
@public in 32-bit;
@public in 64-bit, inside the framework that defined the class;
@private in 64-bit, outside the framework that defined the class.
在 .NET 世界中,在 32 位中是公共(public)可见性,在 64 位中是内部可见性。 由于 iOS 是 32 位的,您应该将它们绑定(bind)为 @public 字段(或者根本不绑定(bind)它们,因为它们很可能不打算在提供的包之外使用)。
关于objective-c - 如何使用btouch在BaiDuMaps for iOS中绑定(bind)@package字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7265411/