MRResources Class Reference

Inherits from NSObject
Declared in MRResources.h

Overview

Provides access to resources in Meridian.bundle. Thread-safe.

+ bundle

Returns the resources bundle

+ (NSBundle *)bundle

Declared In

MRResources.h

+ imageNamed:

Searches inside Meridian.bundle. Assumes png extension if not specified.

+ (UIImage *_Nullable)imageNamed:(NSString *)name

Parameters

name

The name of the image.

Declared In

MRResources.h

+ iconFontName

Icon font support

+ (NSString *)iconFontName

Declared In

MRResources.h

+ registerImage:forKey:

Register an image for a given key

+ (void)registerImage:(nonnull UIImage *)image forKey:(nonnull NSString *)key

Parameters

image

An image presented for registration.

key

The key associated with a particular image.

Declared In

MRResources.h

+ imageForKey:

Get the image for a key if it exists

+ (nullable UIImage *)imageForKey:(nonnull NSString *)key

Parameters

key

The key associated with a particular (returned) image.

Declared In

MRResources.h

+ hasImageForKey:

Check if we have an image for a given key

+ (BOOL)hasImageForKey:(nonnull NSString *)key

Parameters

key

A key which may or may not be associated with an image.

Declared In

MRResources.h

+ registerData:forKey:

Register some data for a given key

+ (void)registerData:(nonnull NSData *)data forKey:(nonnull NSString *)key

Parameters

data

Data presented for registration with a particular key

key

The key associated with a particular blob of data.

Declared In

MRResources.h

+ dataForKey:

Get the data for a key if it exists

+ (nullable NSData *)dataForKey:(nonnull NSString *)key

Parameters

key

The key associated with a particular (returned) data blob.

Declared In

MRResources.h

+ hasDataForKey:

Check if we have some data for a given key

+ (BOOL)hasDataForKey:(nonnull NSString *)key

Parameters

key

A key which may or may not be associated with a data blob.

Declared In

MRResources.h