MBSingletonVariableDeclaration Class Reference
Inherits from | MBVariableDeclaration : 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 implementingClass
Declared In
MBVariableDeclaration.h
singletonAccessor
Returns the method selector for the singleton’s accessor.
@property (nullable, nonatomic, readonly) SEL singletonAccessor
Declared In
MBVariableDeclaration.h