Is possible to do in textView create multiline as separate object ? What i try to do is one textView, one fextField and one button. Now when i type in textField some text and press Button i would like add this text to line (for example line number 1)
1 My text
After this system want add other line for example some log to line number 2
1 My text
2 Computer text
And now i want type some text : hey my next text and after click button i want see this text like continue in my line number 1
1 my text hey my next text
2 Computer text
And the last if i click button for empty textField i would like start type in next line number 3
I don't have any idea how can i reach this goal ? Ca anyone give me some hint ?
Related
I'm new to iOS. These is my current code do and want to remove the character behind that button and when I press that button it show like these
I did that code but i want help in limit that character in that line where show more button appear.
I have 2 text fields in the same view controller. I have added the "Clear Text Always Visible" option for both text fields in the storyboard. For some reason when I click the clear button for the second text field, both text fields clear. I cant find any information on this problem on the internet and am not sure how to fix it. Thank you for your help.
Here is a screen shot of the outlets, both are connected correctly and I have declared them as the delegates, the first text field has a tag of 0 and the second has a tag of 1
Title might be confusing so: I want to create an input for a 6-Digit code with automatic advancing like apple has on its website for 2FA. So you have 6 Input boxes, click in one enter a number and it automatically advances into the next field, the last field presses the enter button. I am using Swift 3.
You can use the UITextFieldDelegate methods with a set of 6 UITextField controls
Use shouldChangeCharactersIn to see that a character has been entered, and move firstResponder to the next field, and finally to the UIButton
Alternatively, you could use a UIPickerView with 6 wheels, or 6 UIPickerViews with a single section, and move on to the next when a value is selected
I've one UITextView. In that I want to add text to anywhere without press enterkey.
Currently It is allowing to add text to any where by pressing enter key.
Like If I'm adding text to 1 line then want to add text to 4th line then I have to press enter and then write.
Now I want that I can add text to any line without pressing enter key.
If I'm adding text to 1 line then If I want to add text to 4'th line then I can tap on 4th line and then start adding text.
Any one know how to do this? Or any other solution if its not possible.
I have requirement to make app like note app but add text to any line that user want without press the enter key.
Thanks.
I am creating a View (i.e. I went to New -> iOS -> User Interface -> View). I want to have a two line UILabel in my View. But when I set the label's text as Line one here this. \nAnd line 2, the entire literal shows up in one line. Even though I specify that the label should have two lines. How do I make it two lines?
Don't put \n in the text, but rather press Alt/Option + Enter