I am using My own custom Keyboard .
It Loading On iPad keyboard.
My Keyboard view having only some keys, So when I load the keyboard all button's size become bigger .
I want to reduce the size of on board Keyboard.
As far as I understand your question, you want a customized keyboard instead of the standard one.
If so, you may want to take a look at this helpful link:
http://blog.carbonfive.com/2012/03/12/customizing-the-ios-keyboard/
Apple on creating custom input views:
https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/InputViews/InputViews.html#//apple_ref/doc/uid/TP40009542-CH12-SW2
(Referenced from How to create a custom keyboard)
Related
I need to decrease the height of the keyboard programatically. Is there any way I can do it? I have found that we can reduce height, using keyboard extensions but I tried and it doesn't work for me.
Is there any way I can do this?
Edit: But i can see small keyboards in some of the apps . How do they acheive it.
Thanks in advance.
You cannot modify the frame or the look of the keyboard, since it works kind of like an overlay over your app and it's not a direct subview in the window where your app lives.
You can create a custom keyboard for this approach, but remember to follow the iOS Human Interface Guidelines.
You can also create a custom view that provides input (for e.g. a bunch UIButtons that append a letter to a UITextView if you press them).
I have a page on an iOS app, that really consists of a series of custom buttons. The buttons are in a view hierarchy that consists of two labels and an image view behind them.
For accessibility support, I have made the two labels hidden to the accessibility system, to prevent accessibility focus from going onto each of the labels rather than the parent button. Accordingly, I have made the contents of one of these labels the accessibility label of the button, and the other the button's accessibility hint. This works well in VoiceOver, focus is moving between the buttons, with explanations of what they are and what they do.
Now when I use Speak Screen, I end with up a result of "No speakable content could be found on the screen." I expected it to speak the contents of the screen. Part of this is because I have set the labels to be hidden to accessibility, but this should be compensated for by speaking accessibility labels of the buttons.
Looking over some other apps and quick tests I have been doing, I am frequently seeing that Speak Screen seems to skip over buttons. I could give my buttons the accessibility trait of 'Static Text' in addition to button, but this seems like a misuse of the traits.
Is it the intended behaviour of Speak Screen to skip buttons or other controls? Is there a way to prevent the individual labels from gaining accessibility focus, while still being visible to Speak Screen?
As per my earlier comment, I am listening for the UIAccessibilitySpeakScreenStatusDidChangeNotification and checking Speak Screen's status with UIAccessibilityIsSpeakScreenEnabled. If Speak Screen is enabled, I am changing the labels to be shown or hidden to accessibility accordingly.
I am making a custom keyboard for iOS. I am using a .xib file for the design, and I am using an IBAction to pull the title of each button on click in order to type. The keyboard is working correctly, and appears perfectly fine on an iPhone 5S and below (.xib dimensions are 320 width x 160 height). However, when viewing on any bigger screen, the keyboard does not appear correctly.
Am I supposed to set certain constraints? How do I use size classes in this scenario? Would it be better to programmatically add constraints or add them by hand?
Link to beta keyboard (not even close to complete) : https://drive.google.com/folderview?id=0B7XwRCOfrcP2eFZ1dlJtX0V2THM&usp=sharing
first you should select view of your custom keyboard
then select add constrain option
than select constrain like below images
give static height which you want,
default keyboard size is 216
Yes simply just Copy your keyboard.xib view and pest it on your view controller but you should set all button constrain , i put it on main storyboard see in below image & then you can add size class otherwise you should go programmatically
Would someone be so kind telling me how would you set a constrain (using size classes) for a view to be right above the keyboard (without the predictive part) on iP6 and iP6+ like on the photo below?
May I have a sample project?
Thank you
Either add the constraints in programmatically based on the keyboard size, or make separate interface files for every screen size with a fixed constraint based on a known size for the keyboard for that screen.
Below is a link to a chat application that works from the same premise. When the keyboard is active elements are pushed up so they aren't hidden by it.
https://github.com/oseparovic/MessageComposerView
The application is in Objective C and pretty easy to transfer that section of the app, I've used this myself.
When a keyboard appears, is there a way to detect that it's an international keyboard (with an extra ribbon on top of normal keyboard to show the international characters) and also get it's frame size? I need to use that info to move upward (if needed) the view above the keyboard.
Check out this article: http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-keeping-content-from-underneath-the-keyboard/
It addresses most of your questions. In addition to notifications, text views will become or resign 'first responder' which will bring up or hide a keyboard view.
As for whether or not the keyboard shows international characters, I'm not really sure how to do that. However, if you get the frame size of the keyboard (as described in the tutorial) you can adjust your view accordingly assuming that this was your concern.
UPDATE
Also check out: Keyboard resize event in iOS 5 (Chinese keyboard bug)?