MBSingletonVariableDeclaration Class Reference
| Inherits from | MBVariableDeclaration : MBConditionalDeclaration : MBDataModel : MBFormattedDescriptionObject |
|---|---|
| Declared in | MBVariableDeclaration.h |
Overview
An MBVariableDeclaration that represents a singleton object.
A singleton can be declared from any class method that takes no arguments
and returns an object instance. Typically, singleton variables are used
to expose objects like UIDevice and UIScreen to the variable space.
implementingClass
Returns the Class that implements the singleton.
@property (nullable, nonatomic, readonly) Class implementingClassDeclared In
MBVariableDeclaration.h
singletonAccessor
Returns the method selector for the singleton’s accessor.
@property (nullable, nonatomic, readonly) SEL singletonAccessorDeclared In
MBVariableDeclaration.h