UIView: Difference between revisions

From iPhone Development Wiki
(Created page with '{{occlass|library=UIKit.framework}} UIView is the root class of all UI elements. == Undocumented methods == === -recursiveDescription === Returns the description of the v…')
 
mNo edit summary
Line 5: Line 5:
== Undocumented methods ==
== Undocumented methods ==


=== -recursiveDescription ===
=== recursiveDescription ===
Returns the description of the view and its subviews. Example output:
{{Function signature
|signature=-(NSString*)recursiveDescription;
|firmware=3.0 – 3.1
}}
Returns the description of the view and its subviews.
 
Example output:


  <UIWebView: 0x4116bb0; frame = (0 100; 320 230); layer = <CALayer: 0x4116c20>>
  <UIWebView: 0x4116bb0; frame = (0 100; 320 230); layer = <CALayer: 0x4116c20>>
Line 13: Line 19:
         <UIWebDocumentView: 0x4812c00; frame = (0 0; 320 230); layer = <UIWebLayer: 0x41171c0>>
         <UIWebDocumentView: 0x4812c00; frame = (0 0; 320 230); layer = <UIWebLayer: 0x41171c0>>


=== -scriptingInfoWithChildren ===
=== scriptingInfoWithChildren ===
{{Function signature
|signature=-(NSDictionary*)scriptingInfoWithChildren;
|firmware=2.0 – 3.1
}}
 
This function returns an NSDictionary with contains some information e.g. geometry, class name, etc.
This function returns an NSDictionary with contains some information e.g. geometry, class name, etc.



Revision as of 17:57, 11 October 2009


UIView is the root class of all UI elements.

Undocumented methods

recursiveDescription

Signature -(NSString*)recursiveDescription;
Available in 3.0 – 3.1

Returns the description of the view and its subviews.

Example output:

<UIWebView: 0x4116bb0; frame = (0 100; 320 230); layer = <CALayer: 0x4116c20>>
   <UIScroller: 0x411e110; frame = (0 0; 320 230); clipsToBounds = YES; autoresize = H; layer = <CALayer: 0x411e4d0>>
       <UIImageView: 0x411f460; frame = (0 0; 54 54); transform = [-1, 0, -0, -1, 0, 0]; alpha = 0; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x411f490>>
       <UIWebDocumentView: 0x4812c00; frame = (0 0; 320 230); layer = <UIWebLayer: 0x41171c0>>

scriptingInfoWithChildren

Signature -(NSDictionary*)scriptingInfoWithChildren;
Available in 2.0 – 3.1

This function returns an NSDictionary with contains some information e.g. geometry, class name, etc.

References