NTAssetsUtils


@interface NTAssetsUtils : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

یک کلاس کمکی برای مدیریت پوشه assets داخل برنامه می‌باشد.

  • Loads the specified bundled resource.

    Declaration

    Objective-C

    + (NTBinArray *)loadAsset:(NSString *)path;

    Swift

    class func loadAsset(_ path: String!) -> NTBinArray!

    Parameters

    path

    The path of the resource to load. The path is relative to application root folder.

    Return Value

    The loaded resource as a byte vector or null if the resource was not found or could not be loaded.

  • Calculates path for the bundled resource.

    Declaration

    Objective-C

    + (NSString *)calculateResourcePath:(NSString *)resourceName;

    Swift

    class func calculateResourcePath(_ resourceName: String!) -> String!

    Parameters

    resourceName

    The name of the resource.

    Return Value

    The full path for the resource. Result will be empty string if the resource was not found.

  • Calculates writable path for the given file name.

    Declaration

    Objective-C

    + (NSString *)calculateWritablePath:(NSString *)fileName;

    Swift

    class func calculateWritablePath(_ fileName: String!) -> String!

    Parameters

    fileName

    The file name to use.

    Return Value

    The full path for the given file name.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;