Skip to content

PKObject.getSuperClassOfClass

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of PKObject)

Return Type: string

Parameters: class (string, optional)

Returns the superclass the supplied class. If no class is specified, the superclass returned is the superclass of the object's class, that is, the same as superClass.

Note: This is typically not used directly, but since it provides a nice interface to _classHierarchy, it is supplied as a public method.

Usage

console.log ( anObject.getSuperClassOfClass ( "UILabel" ) );
(on the console)
UIView

Version

0.3 Introduced; docs valid

Clone this wiki locally