Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What I did was create a keyboard from scratch. Use two <code>UIViews</code> and buttons in the Fist view wich is on the bottom. Set user interaction disabled on these buttons and then with this code here:</p> <pre><code>-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint touchPoint = [touch locationInView:keyboardView]; //here loops all labels for(UIButton *keyButton in keyboardView.subviews){ if (CGRectContainsPoint(keyButton.frame,touchPoint)&amp;&amp;keyButton.enabled) { keyButton.highlighted = YES; for(UIButton *bigKey in keyboardTextView.subviews){ if (bigKey.currentTitle==keyButton.currentTitle) { bigKey.hidden=NO; } else{ bigKey.hidden=YES; } } } else if(!CGRectContainsPoint(keyButton.frame,touchPoint)){ keyButton.highlighted = NO; } } } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint touchPoint = [touch locationInView:keyboardView]; //here loops all labels for(UIButton *keyButton in keyboardView.subviews){ if (CGRectContainsPoint(keyButton.frame,touchPoint)&amp;&amp;keyButton.enabled) { keyButton.highlighted = YES; for(UIButton *bigKey in keyboardTextView.subviews){ if (bigKey.currentTitle==keyButton.currentTitle) { bigKey.hidden=NO; } else{ bigKey.hidden=YES; } } } else if(!CGRectContainsPoint(keyButton.frame,touchPoint)){ keyButton.highlighted = NO; } } } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint touchPoint = [touch locationInView:keyboardView]; for(UIButton *keyButton in keyboardView.subviews){ keyButton.highlighted = NO; if(CGRectContainsPoint(keyButton.frame,touchPoint) &amp;&amp; keyButton.enabled == YES){ keyButton.enabled = NO; letterUsedString=keyButton.currentTitle; // right here you can use the letter Used String. } } for(UIButton *bigKey in keyboardTextView.subviews){ bigKey.hidden=YES; } } </code></pre> <p>All you need is two <code>IBOutlets</code> to the views, <code>keyboardTextView</code> and Keyboard View. I will upload some files so you can see my keyboard. So the first view is the buttons you pressed, an image in the background of a button. And the second view is the buttons highlighted. If you implement that code and connect the two <code>IBOutlets</code>, it will work like a keyboard. Any variables that aren't recognized just add to your <code>.h</code>. When my buttons where pressed I highlighted them which changed the image from:</p> <p><img src="https://i.stack.imgur.com/SxhlW.png" alt="this"> </p> <p>to :</p> <p><img src="https://i.stack.imgur.com/PuV2N.png" alt="this"></p> <p>And then my magnified button above image would be:</p> <p><img src="https://i.stack.imgur.com/z4nLk.png" alt="this."> </p> <p>Just place your buttons how you want them, and put magnified buttons above. The magnified button view is visible, but all the buttons inside are hidden until you press. I hope my code helps, you'll have to do the storyboard on your own.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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