The UITextView class implements the behavior for a scrollable, multiline text region in iOS. The class supports the display of text using a custom font, color, and alignment and also supports text editing. You typically use a text view to display multiple lines of text, such as when displaying the ...

learn more… | top users | synonyms

0
votes
0answers
34 views

UITextView delegate crashing on iOS 5

When I set the delegate of a UITextView, it crashes when I call becomeFirstResponder on it, on iOS 5. I currently don't have any delegate methods implemented, and they're all optional. Any idea why ...
0
votes
1answer
15 views

How to substring long nsstrings and present them in uitextview?

I am reading in 2-5 mb large txt files into nsstrings that I want to present in a uitextview. Now I have experienced that it takes too long to read in the whole string especially since I am removing ...
0
votes
3answers
20 views

Is there a way to know when a certain UITextView has been entered?

I have two UITextViews! The problem i have is that I want an action to be performed when one of the textViews is entered and not the other! I placed the action code in - ...
-1
votes
1answer
45 views

Failed to get contentSize of UITextView in XCode5 & iOS7 [closed]

The contentSize of UITextView is used to adjust the frame according to the content of a textview. It works well before but not in XCode5 & iOS7. CGRect frame1; frame1 = myTextView.frame; ...
0
votes
0answers
10 views

Why does changing a UITextView's frame origin completely disfigure my entire frame size?

I have a UITextview with a small UIViewController on top of it, whose view is a UITextView (It's red in the screenshots).The small red textView is the subView of the bigger textView under it. Heres ...
0
votes
1answer
20 views

UITextView that expands dynamically to text inside a scroll view using auto layout

I have a UIScrollView that includes some components, and one of these components is a UITextView, what I want is to let the UITextView dynamically expands with the UIScrollView, in fact I use ...
-1
votes
2answers
24 views

height of the text view to be dynamic inside a scrollview

I have a text view inside a scroll view, I want to let the height of text view be dynamic as its content, because I don't want to scroll the text view alone, In fact I want to scroll the text view ...
-1
votes
1answer
33 views

How to display .m file content in objective c programmatically?

I need to display the content of a .h/.m file on the iPhone's screen, maybe in a UITextView, how can I do that ? The problem is that i need the code to be coloured exactly as shown in code. Thank you ...
0
votes
0answers
12 views

Custom UITextView caret in wrong place

I have implemented the syntax text highlighting as given in the question here (UITextView w/ Syntax Highlighting) - it's a great utility and works well when compared to some non-regex versions (such ...
1
vote
1answer
35 views

UITextView alligining text vertically center

I want to align text vertically center in UItextView. I am using following code UITextView *tv = object; CGFloat topCorrect = ([tv bounds].size.height - [tv contentSize].height * [tv ...
1
vote
0answers
41 views

how to show sanskrit and hindi characters on text view in iOS?

I am working on a project in which I want to take data from a doc file to a UITextView, that are in English, Sanskrit and Hindi. Only english characters are showing properly in textView. I am getting ...
0
votes
3answers
78 views

Dynamic UITextView in a dynamic UIScrollView - iOS

I'm facing a problem which takes me too long to solve. I built a view, which contains a ScrollView. in the ScrollView, there's a view, which contains an image, and a UITextView. the textview should be ...
0
votes
1answer
17 views

How to resize the UITableView Cell height to fit the UITextView content in it?

I have tried the following in heightForRowAtIndexPath, CGSize size = [text sizeWithFont:font constrainedToSize:CGSizeMake(300.0, MAXFLOAT) lineBreakMode:UILineBreakModeWordWrap]; return size.height + ...
0
votes
0answers
9 views

Updating the UI control's value in the runtime from background thread.

I know this sound a very simple question. I'm still a newbie in iPad app development. Would you please tell me how would I update the contents in the run time. The following code may be helpful to ...
0
votes
1answer
41 views

Stop the backspace key from speeding up on test device

I'm implementing an app where the user is able to insert UIImageViews on top of the UITextView view. I also insert some characters beneath the UIImageViews to help with removing them via backspace. ...
1
vote
5answers
67 views

IOS: hide keyboard on touch UITableView

I am new in iOS development. I want to hide the keyboard when tapping outside of a UITextView. My TextView is in a cell from an UITableView. The problem is that I have a Toolbar at the top and my ...
0
votes
2answers
66 views

How to set height dynamically of a uitextview

I want to set height dynamically on my UITextView, but it doesn't works. My code is : [super viewDidLoad]; DTAttributedTextView *_textView; contentView = [[UIView alloc] initWithFrame:CGRectMake(0, ...
0
votes
0answers
6 views

Move cursor to previous and next line in UITextView

In the iPhone/iPad simulator, you can use arrow-up and arrow-down keys on Mac to move the cursor to previous/next line in the UITextView. I'd like to create two buttons that implements the same ...
0
votes
1answer
22 views

Blurry UITextView in UIScrollView

I am having problems with a blurry UITextView in a UIScrollView so I created a simple little app that just have a ScrollView that holds on to a view that in turn has a UITextView on it. Below code is ...
1
vote
0answers
28 views

Having textView in tableView Cell, The textView does not become First responder at all

I just have a custom table view cell. When I put a UITextField rather than the UITextView, it's ok. And when I touch the UITextField in app it becomes first responder and I can type in it. But when I ...
0
votes
0answers
38 views

Xcode iOS MKMapView and dynamic height of the text view

Sorry fory my english. I'm loading data from plist and have two problems. The first one is about MKMapView: I'm using the following code. The point is at the first time, when I open an item from a ...
-1
votes
1answer
32 views

Journal font in UITextview

How to set journal font for UITextview like setting helvetica to it? [textview setFont:[UIFont fontWithName:@"Helvetica" size:12]]; Any fonts related to journal font would be accepted.
-1
votes
2answers
39 views

How to Get the value(label) from the TextField inside the custom cell of a table View to post on te URL

I want my iOS app to pass to a URL the text the user types. The relevant code is pasted below. WHen I run the app, the text does not get assigned any value. It stays as null. I am new to iOS ...
0
votes
1answer
39 views

uitableviewcell with uitextview

I have an editable textview inside a tableviewcell, like the field notes in apple contacts, but the tableviewcell doesn't resize with the textview. I think that the problem is in this method. Can ...
0
votes
1answer
69 views

Obtaining origin of Text from UITextView

-Goal: Get the Origin of a particular section of Text in a UITextView Below is a link to a Screenshot of an app I am working on. Please view it as it is easier to explain with it. Image Link: ...
3
votes
1answer
27 views

Activate the Speech to Text on UITableView

When the keyboard appears for UITextViews and UITextFields there is a microphone button that lets you do Speech to Text. Is there anyway for me to activate this functionality without having the user ...
1
vote
1answer
42 views

How to calculate width of multiple lines of UITextview?

I have a UITextView that has a maximum number of four lines. I want to put UILabels behind each line, covering only however much text there is for the respective line. So do any of you fine coders ...
1
vote
1answer
38 views

How to save textview font, size, color and alignment by NSUserDefaults?

How to allow app users to set font, size, color and alignment an application by custom setting? I am wondering if I can save an UIFont to the NSUserDefaults. How can I get around this issue?
0
votes
1answer
47 views

UITextView in UITableView, Smooth Expand using AutoLayout

I have an editable UITextView in every UITableViewCell. The UITextViews resize fine to pre-loaded text (calculated via heightForRowAtIndexPath) but I'm not sure how to get the smooth-resizing using ...
0
votes
0answers
22 views

how to auto adjust layout in IOS

for example,in this xib:(...I won't allow to insert a img) I use a scrollView contain all the widgets. At the top is a UITextView which has a dynamic height with different content.(I use this ...
1
vote
1answer
40 views

UITextView that expands to text using auto layout

I have a view that is laid out completely using auto layout programmatically. I have a UITextView in the middle of the view with items above and below it. Everything works fine, but I want to be able ...
0
votes
0answers
15 views

How do I reprint/refresh the UITextView

I have a question about the refreshing or reprinting the UITextView. So, I have a UITextView and when I press a button I'm trying to read a big file and display its content in the UITextView. The ...
0
votes
3answers
35 views

How to resize the width of the UITextView according the?

I want to ask how to resize the UITextView to fit the text will display on the screen. For example Resize the UITextView to Could anyone help me out or give me some advise. Thanks Tips: I ...
0
votes
2answers
60 views

UITextView text cut off when there is a large amount of text

I have a UITableViewCell subclass that contains a UITextView where scrolling is turned off. I set its frame like this, in my table view cell layoutSubviews method: CGRect frame = ...
0
votes
1answer
41 views

Building a CGPath around sentences in UITextView is incredibly slow at -positionFromPosition:

I'm doing some text analysis and have run into an annoying performance bump that I can't seem to find how to optimize. I start with the text from a UITextView and split the text into an array of ...
0
votes
3answers
43 views

BLOB data is not displaying in UITextView

hello, I am stucked at the last part of it, Please help me on it. In this there are three views, first one, for list of books( in UITableView), second is chapters(in UITableView) and last one is ...
0
votes
0answers
16 views

Increase content size of UITextView to accommodate UIImageView

I have some text inside a UITextView (non editable) and at the end, I want to add an image. I achieved it like this. UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage ...
2
votes
2answers
57 views

Xcode font size randomly changes when testing on iPhone

I am having a problem with a UITextView when building an iPhone app using Xcode 4.6.2 where the font size on a UITextView keeps changing when testing on my iPhone. I originally set the font size in ...
0
votes
1answer
49 views

Move UIView when Keyboard Appears

I have TWO UITextViews, one at the top of the UIView another at the bottom of UIView. I use this code, to move UIView when Keyboard appears. - (void) viewDidLoad { [[NSNotificationCenter ...
0
votes
2answers
82 views

How to detect when user tap on Shift key and Shift mode in iOS?

I can use UITextViewDelegate or NSNotificationCenter to detect when user tap character key on Keyboard to input text to UITextView. But my App need to detect when user tap on Shift key and I also ...
0
votes
0answers
28 views

How to restore UIScrollView screen to center in xcode?

This is my code, but when I resign my UITextView on UIButton press then scrollView doesn't work. Before pressing UITextView Done Button, the scrollView works properly for all the fields in the form ...
1
vote
1answer
46 views

How to remove an NSParagraphStyle Attribute from a textView's attributedText?

I'm trying to allow a textView to allow bullet points via a custom button by inserting the NSAttributedString @"\u2022"(unicode for bullet point) with an NSParagraphStyle attribute that has it's ...
0
votes
1answer
47 views

UILabels not resizing in UITableView

I have a UITableView that uses prototype cells. The cells have a custom class called dataCell. The custom cells also have three UILabels:idLabel, contLabel, and expLabel. The cells properly resize ...
0
votes
0answers
89 views
+50

Replace UITextViews text with attributed string

I have a UITextView and when the user is entering text into it, I want to format the text on the fly. Something like syntax highlighting... For that I'd like to use UITextView... Everything works ...
2
votes
0answers
78 views

Creating a good custom emoticon chat experience on iOS

I'm trying to come up with possible implementations for what is basically an expanding UITextView with the capability of typing inline images. There are literally dozens of open source projects I've ...
-1
votes
2answers
54 views

How to Access `UItextView` data from another view controller

How I access the body of UITextView from another view controller for email here is my code EmergencyMessageController *ViewB1 = [[EmergencyMessageController ...
0
votes
1answer
36 views

TextView - Scroll TextView To Bottom

I am making a an app that has a TextField and a button. When I click the button some text will add in the TextField. But when clicking the button, I wan't to scroll down to the bottom of the text ...
0
votes
1answer
36 views

NSUnknownKeyException of UItextView

my code: @interface UITextView () - (id)styleString; // make compiler happy @end @interface MBTextView : UITextView @end #import "MBTextView.h" @implementation MBTextView - (id)styleString { ...
3
votes
5answers
90 views

Textview with Suggestions List in iOS

I am trying to implement a textView in which when user starts typing(Let's say names) it would show up the suggestions and when they click them it gets added to the textView than user presses comma ...
0
votes
0answers
60 views

My UITextView makes my App crash when back button is pressed to get back to the menu in Xcode

This is the code I have in my .h @interface Notebook : UIViewController { IBOutlet UITextView *textView; //loads "Data Saved" message after save button hit IBOutlet UILabel *loaded; } //Database ...

1 2 3 4 5 38