All Projects → lupidan → Uikeyboardcoview

lupidan / Uikeyboardcoview

Licence: apache-2.0
A UIView to appear along the iOS default keyboard

UIKeyboardCoView

A UIView to appear along the iOS default keyboard. It manages also ROTATION when keyboard is present. For iOS4+

The UIKeyboardCoView is totally CUSTOMIZABLE. Just add one UIKeyboardCoView in your XIB and put anything you need inside it :)

Landscape Image Portrait Image

How to use

Just add it as a normal UIView programmatically or trough the Interface Builder. It has also a delegate outlet to know when the Keyboard Co View did/will appear/disappear.

Finally, to manage keyboard rotations correctly, paste this code in your ROOT UIViewController willRotate and didRotate methods, like so:

- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{
	[[NSNotificationCenter defaultCenter] postNotificationName:UIKeyboardCoViewWillRotateNotification object:nil];
}

- (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation{
    [[NSNotificationCenter defaultCenter] postNotificationName:UIKeyboardCoViewDidRotateNotification object:nil];
}

License

Copyright 2012 Daniel Lupiañez Casares [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].