UIPeripheralHostView: Difference between revisions

From iPhone Development Wiki
No edit summary
(Removed recursive definition in favor of the image. Added an explanation)
Line 1: Line 1:
This view contains the iOS keyboard. It is made up of the background (UIKBInputBackdropView) and the foreground (UIKeyboardAutomatic)
This view contains the iOS keyboard. It is made up of the background (UIKBInputBackdropView) and the foreground (UIKeyboardAutomatic)


recursiveDefinition example on 7.1.2:
[[File:Keyboard.png]]
<source lang=boo>
<UIPeripheralHostView: frame = (0 568; 320 252);>
  | <UIKBInputBackdropView: frame = (0 0; 320 252);>
  |    | <UIKBBackdropView: frame = (0 0; 320 252);>
  |    |    | <_UIBackdropEffectView: frame = (0 0; 320 252);>
  | <UIKeyboardAutomatic: frame = (0 0; 320 252);>
</source>


[[File: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

Revision as of 07:16, 11 July 2014

This view 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