What happened with the default autocompletion suggestions for the UITextView? - autocomplete

I used to enable set Correction = YES in the interface builder to get the live autocompletion suggestions. Now when I do that, the text gets autocompleted without letting me choose from any previous suggestion. In fact, it forces me to write words I don't want to write. Can somebody tell me what happened? How do I get the old suggestions?
Thanks in advance.

In the UITextView TextViewDidChange I created a thread that changed the cursor position. This, off course happens after the text view changes. The change of the cursor position triggers the autocomplete without letting me even see that there had been a suggestion.

I had the same problem, but the code had resignFirstResponder then becomeFirstResponder right after for the UITextView. I dunno why that was there, but removing it fixed the problem.

Related

Add additional buttons to Autocomplete

I would like to know if its possible to add an additional button next to the cross, and down arrow on the Autocomplete, but still leave the current buttons intack.
I tried using endAdorement on the text field, and it removed the existing buttons.
I think there is probably some correct way to do this, but still not seeing it.
Thanks in advance for any help.
Cheers
Jason
Have worked out how to go forward with this, incase anyone else has the same issue, use the useAutocomplete hook, and then render it however you want too.

Unity: How could I change the text of a button using the inspector?

I am trying to make a title screen for my game and I cannot figure out how to change the text of a button using the Inspector.
Any ways I could do this?
Oops. I just realized the text is a child of the button. Never mind, don't answer!
Aight mate!
It is a common mistake... it is fine.
I'd advise you to use TextMesh Pro.
It is a better way and a way more customizable option.
It has crispier text and looks cleaner.
If you need any help, you can ask me out.

Drag and drop in SplitLayoutPanel not working properly

I'm trying to drag row from cell table, to my other widget. To do this i created DragAndDropCellTable and DroppableWidget. While they were in same container it was working fine. But since i put them to SplitLayoutPanel, it is not working properly. I still got drop event, but helper is not visible. I tried to set z-index on helper but this didn't help.
Is any one has idea what i'm doing wrong?
Do you try to set the option appendTo to "body" ? The cause is certainly because the overflow css property of the split panel is set to hidden hidden
I have the same problem here, but I don't get your answer completely.
I guess you mean that the helper is hidden when it leaves the panel cause of the overflow hidden. Am I right so far?
But i don't get how to append. How can I append the helper to the rootPanel?
Or am I on the wrong track with this?
Ok I got it.
I don't have to append the helper but the DraggableOptions to "body"
draggableOptions.setAppendTo("body");
https://code.google.com/p/gwtquery-plugins/wiki/DraggablePluginGettingStarted#DraggableOptions_Object
Thanks

How to implement an effect in iOS that the specified widget appears only when pull it up?

I noticed when open the built-in "Messages" app you won't see the search box widget by default. Only when you pull the view up you could see it. It's an interesting effect exactly. Well, I really want to implement a similar effect but what should I start from ?
Any clue?
Thanks.
Aha! seems found the answer.
I viewed this post and had a try, and it works.
Cheers!
Showing the searchbar only when user pull down the table

Getting around the limitations of iPhone's UITextField

I have spent a few days trying to get around the limitations with UITextField, namely no text wrap and number of lines. I have created a UILabel, which is used to display the text entered in UITextField and does all the formatting stuff properly. The UITextField is hidden and the user sees all the text entered only in UILabel as it's being entered.
Everything is working perfectly except for the lack of a cursor on the UILabel to show the user where the next character typed into the field will show up.
I have experimented with using various characters as cursors on the label. But there is no getting around the fact that it is not the standard blinking cursor indicator on the iPhone and so the whole thing just looks wrong.
Before I abandon ship and go for a UITextView (with its own set of issues) I was wondering if anyone has any ideas as to how a blinking cursor can be added to the text field on a label text.
Thanks in advance.
Your approach has other issues which make it worth rethinking the strategy.
How does selection look like?
copy + paste?
Do you handle right to left languages?
Auto correction?
The list is certainly longer, but I think it's enough to consider other solutions. But I agree that all of UIKit's text handling is a bit poor.
If you don't need to support selection, copy and paste, and only need multiline input, you could use a | character and animate it as if it were blinking... either that or perhaps a custom overlay view on top of the label, that would implement the cursor drawing, animation and positioning based on the length of the string and the font used.
– sizeWithFont:forWidth:lineBreakMode:
– sizeWithFont:constrainedToSize:
– sizeWithFont:constrainedToSize:lineBreakMode:
– sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode:
may help to achieve just that.
So what are the issues preventing you from going to a UITextView? It seems possibly easier to address those.