开发者

How to bind @package fields in BaiDuMaps for iOS using btouch?

开发者 https://www.devze.com 2023-04-01 13:18 出处:网络
import <Foundation/Foundation.h> import\"BMKAnnotation.h\" @interface BMKShape : NSObjec开发者_如何转开发t <BMKAnnotation> {
import <Foundation/Foundation.h>

import"BMKAnnotation.h"

@interface BMKShape : NSObjec开发者_如何转开发t <BMKAnnotation> {
@package
    NSString *_title;
    NSString *_subtitle;
}

I don’t convert the @package to .NET code!


Apple ObjectiveC documentation about @package states:

@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.

In .NET world that's public visibility in 32bits and internal visibility in 64bits. Since iOS is 32bits you should bind those as @public fields (or not bind them at all since they are likely something that is not meant to be used outside of the provided package).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号