Dot adding at the end of word in UITextView - iphone

In my UITextView whenever I have been giving multiple spaces a dot is adding at the end of the word. As I am using that for getting email id, I don't want any dots, How to avoid this?. I have added that UITextView in IB. Do I need to do any changes there?

It's a keyboard setting. Go to settings->general->keyboard and disable "." shortcut. It inserts period if you add two consecutive spaces.

In interface builder, set the keyboard option to E-mail address.

Related

iPhone keyboard with weird dot

Where is this dot coming from?:
There is a dot hidden behind keyboard and highlights to blue when pressed (trying to press ?123) to change keyboard mode.
I have noticed it in few placed in my app and in iOS 6 (also with decimal keyboard, one can still see this dot which interferes with comma character).
There is nothing special I am doing with responders (normal UITextView of UITextField fields).
Anyone has idea what could be the cause of it?
Just to exclude popular cause:
I have rootViewController of my key application UIWindow set to my root navigation controller.
It looks like the "old"(before iOS6) way to add a dot or return-key to UIKeyboardTypeNumberPad but with a wrong keyboardType.
Something like in this tutorial: http://www.neoos.ch/blog/37-uikeyboardtypenumberpad-and-the-missing-return-key
Have you ever used this kind of custom keyboard in the past? Or maybe you don't know that you use it. Is there a category of UITextView you have overlooked?
Search through your project for e.g. "#interface UITextField (" to find the category.

UITextField, is it possible to get the text to wrap around to another line below the first line?

I've a UITextView, its quiet big, I sized it so it could fit 4 lines of text, so if the user wants to write a long note it can be read while its being written.
The problem is that text stays on the top line and it scrolls horizontally rather than wrapping around and dropping down to a line below it. Like you see when you write a text message on your phone.
Is there anything that can be done to get a UITextField to act like this? Or am I required to use an editable UITextView instead?
Looking at the docs it would seem UITextView cant provide the functionality I need.
Many Thanks
-Code
HI,
I do'nt think , It could be possible by using UITextField (support single line),You will have to use the UITextView (for multiline text) .
See the below tutorial , It grow at runtime while the user type the text using keyboard and can expend till certain line ...
http://www.hanspinckaers.com/multi-line-uitextview-similar-to-sms
If it is an IBOutlet than you can just enable vertical scroll and remove horizontal scroll from scrollers.
Hope this helps.

Disable numbers and punctuation button on iphone keyboard

I have a UITextField that brings up the keyboard. I just want the user to input alphabets and not numbers or punctuation marks. How do I disable the numbers and punctuation key on the default keyboard that pops up.
Thanks.
David
Looking like you used the Default Keyboard....instead you can try to use:
yourTextField.keyboardType = UIKeyboardTypeAlphabet; This might solve your problem.
& if this doesn't solve your problem other way, is:
----> You need to create the Custom Keypad as per your requirement.

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.

How to get UITextView to respect newlines in Interface Builder?

I have a simple app with a UITextView embedded into a UIScrollView. Interface Builder won't let me add multiple newlines for spacing; when I hit return it sees that as "end of input" rather than appending the newline to the UITextView.
How can I get it to accept newlines for spacing?
Much simpler (and more IB based) than previous answers:
Just Alt + ENTER It will send a newline to the UITextView.
Write up your text in TextEdit, then copy/paste it in.
As sbwoodside said, a text editor is the easiest way.
That said, ff you need more control, or it isn't quite working, don't use IB. Ideally, if you need any type of formatting for a long sting of text, do it programmatically.
Formatting in IB is horrible. I tried to add some "terms and conditions" in a UITextView and it was a real pain.
In the end it is easier than messing with IB...
In IB Shift+Alt (Option)+Enter is as New paragraph