Difference between revisions of "UIPeripheralHostView"

From iPhone Development Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
recurisveDefintion example on 7.1.2:
+
'''UIPeripheralHostView''' contains the iOS keyboard. It is [http://stackoverflow.com/a/22840275 made up of] the background (<code>UIKBInputBackdropView</code>) and the foreground (<code>UIKeyboardAutomatic</code>).
<source lang=boo>
+
 
<UIPeripheralHostView: frame = (0 568; 320 252);>
+
[[File:Keyboard.png|500px]]
  | <UIKBInputBackdropView: frame = (0 0; 320 252);>
+
 
  |    | <UIKBBackdropView: frame = (0 0; 320 252);>
+
The keyboard button squares and the text are actually separate images.  Each are contained in a <code>UIKBSplitImageView</code> which has a <code>UIImage</code>. These are rendered and cached.
  |   |    | <_UIBackdropEffectView: frame = (0 0; 320 252);>
+
 
</source>
+
The more dynamic keys (shift, delete, space, 123, world icon, return, etc) are <code>UIKBKeyViews</code>.
 +
 
 +
The best way to get the <code>UIPeripheralHostView</code> is via <code>[%c(UIPeripheralHost activeInstance]</code>'s _hostView ivar.
 +
 
 +
{{occlass|library=UIKit.framework|navbox=on}}

Latest revision as of 08:50, 16 July 2014

UIPeripheralHostView contains the iOS keyboard. It is made up of the background (UIKBInputBackdropView) and the foreground (UIKeyboardAutomatic).

Keyboard.png

The keyboard button squares and the text are actually separate images. Each are contained in a UIKBSplitImageView which has a UIImage. These are rendered and cached.

The more dynamic keys (shift, delete, space, 123, world icon, return, etc) are UIKBKeyViews.

The best way to get the UIPeripheralHostView is via [%c(UIPeripheralHost activeInstance]'s _hostView ivar.