I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this?
Can anyone help me ?
Is there any built-in style/layout available or do I need to create a view for same?
Thanks,
Jayesh
You use the inputView property of a UITextField or UITextView. Simply assign it a custom view of your own. Then, when the receiver becomes the first responder, the system will automatically show your custom view as the keyboard. It will also hide it, when resigning first responder.
As far as I know, there are no templates.
I collected a view links about this topic with screenshots of keyboard-layouts + links about the programming-background. The article is in german but the links are all english: http://uxzentrisch.de/custom-mobile-keyboard-design/
Thanks for your answer, Jorge!
Related
I have a view controller with 8 text fields placed vertically in the view. The problem is that the keyboard obstructs some of the text fields so that the user cannot enter any data. So, basically I need a way to scroll the view.
I did try following the approach listed in this StackOverflow question but had trouble converting some of the objective-c to Swift.
How to make the view controller scroll to text field when keyboard appears
I was wondering if anyone has solved this problem in Swift and if so could post an example?
Thanks in advance!
Hi I've resolved this problem through subclassing UIScrollView. This is a swift version of scrollView and it works with auto layout.
You can checkout here https://github.com/honghaoz/AutoKeyboardScrollView
Basically, the idea is registering keyboard notifications (e.g. UIKeyboardWillChangeFrameNotification), and scroll to let active textFields visible when keyboarding is showing.
I have a textview. When we are editing a textview, we can see suggestions as shown in the image. I want to customize the suggestions. ie, Instead of the default words in suggestion box, I want to show words from my array. How can i do this?
Thanks in advance...
To disable suggestion there are 2 methods:
First one is:
UITextField* f = [[UITextField alloc] init];
f.autocorrectionType = UITextAutocorrectionTypeNo;
Second one is:
The Interface Builder also has a dropdown field to disable this. As you're more likely to create textfields in the interface builder, look for it there. You can find it in the Attributes Inspector next to 'Correction'.
For your array in suggestions go through this link:https://www.cocoacontrols.com/controls/autocompletiontableview
Disable autocorrect for that text view, then have a custom view ready and place it above the other views matching wherever the cursor is. There's probably other SO posts to find out where that cursor is...
You'll probably use the delegate pattern 2-way. One way, the custom view is made aware of changes in the UITextView so it knows when to update itself's suggestions.
The other delegate is your view or the textView, notified when someone hits the button.
This should all be easy to make, the only hard part is figuring out how your custom view's logic will behave
i would like to increase the keyboard key size is that possible?
if i need to create my own custom keyboard , i want to increase the keyboard keys size.
Please provide me how can i go with implementing this...
any tutorials or code sample would be helpful .
Thanks for your time and views
Standard keyboard appears as a window and you cann't change its size.
Custom keyboard is just a custom view with backgroundImage and about 30 buttons. I guess you should provide some datasource for this view (for different language supporting) and delegate like a (void)keyboardDidPushLetter:(MyCustomKeyboard *)keyboard atIndex:(NSInteger)index;. Just start implement it.
How in the world does one get the iPhone view to zoom in on a focused UITextField? I need to tap on a text field that I want to edit, and my view should zoom in to the tapped text field and pull up the keyboard (which it already does), similar to how many Internet text fields gain focus on the iPhone. Is this some type of overlay?
I've been looking everywhere for this solution but maybe I've just got the wrong terminology. Thank you in advance.
Could be a duplicate of this StackOverflow question.
In essence, there are a number of ways, but you have to program this effect manually. A textfield is already an overlay. You can either move it, or scroll the containing view.
Please follow the following steps.
Implement the delegate method for all textfield.connect the outlet of textfield in interface builder basically it's setting the delegate property.then in delegate property you can defined the method whatever you want to implement or wanted to do functionality.
Thanks
Anyone has any idea how one can achieve the same look as when you press on the "From:" in the Mail iphone app when you have more than one user account.
I'd like to remove my keyboard, but WITHOUT animating it. Rather just disappear and instead of it have a UIPickerView appear.
Thanks much!
Since iOS 3.2 you can set the inputView property of a UITextField to a custom view. This view is then shown instead of the keyboard as input for that view.
There's no way to achieve this before iOS 3.2 I know.
UITextField Class Reference