Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>from my little knowledge, you can't lock default iPad keyboard scrolling movement.</p> <p>You can manage its other functionalities like keyboard type and you can also create custom uikeyboard.</p> <p>Please check <a href="https://stackoverflow.com/questions/2275685/creating-a-custom-uikeyboard-for-iphone">this post</a> which is discussing about <strong>creating a custom uikeyboard</strong></p> <p>However, please take a look on this code and try to achieve your goal</p> <pre><code> //The UIWindow that contains the keyboard view - It some situations it will be better to actually //iterate through each window to figure out where the keyboard is, but In my applications case //I know that the second window has the keyboard so I just reference it directly UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1]; //Because we cant get access to the UIKeyboard throught the SDK we will just use UIView. //UIKeyboard is a subclass of UIView anyways UIView* keyboard; //Iterate though each view inside of the selected Window for(int i = 0; i &lt; [tempWindow.subviews count]; i++) { //Get a reference of the current view keyboard = [tempWindow.subviews objectAtIndex:i]; //Check to see if the className of the view we have referenced is \"UIKeyboard\" if so then we found //the keyboard view that we were looking for if([[keyboard className] isEqualToString:@\"UIKeyboard\"] == YES) { //Keyboard is now a UIView reference to the UIKeyboard we want. From here we can add a subview //to th keyboard like a new button //Do what ever you want to do to your keyboard here... } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload