Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:23:46+00:00 2026-05-28T08:23:46+00:00

I have a UITextView inside a UITableViewCell . It’s working as expected except that

  • 0

I have a UITextView inside a UITableViewCell. It’s working as expected except that I can’t dismiss the autocorrection suggestions that pop up. This is what my -tableView:cellForRowAtIndexPath: method looks like:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *messageCellIdentifier = @"MessageCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:messageCellIdentifier];

    if (cell == nil) {

        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
                                      reuseIdentifier:messageCellIdentifier];
    }

    // Set the background view of the cell to be transparent        
    UIView *backView = [[UIView alloc] initWithFrame:CGRectZero];
    backView.backgroundColor = [UIColor clearColor];
    cell.backgroundView = backView;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    UIImage *ballonImage = [[UIImage imageNamed:@"ChatBubbleGray.png"] stretchableImageWithLeftCapWidth:24 topCapHeight:15];

    NSString *text = @"Touch To Type";

    // This imageView will be the background of the UITextView
    UIImageView *balloon = [[UIImageView alloc] initWithImage:ballonImage];

    balloon.frame = CGRectMake(0.0, 0.0, 300, 140);

    CGRect textViewFrame;

    textViewFrame.origin.x = balloon.frame.origin.x + 10;
    textViewFrame.origin.y = balloon.frame.origin.y + 5;
    textViewFrame.size.width = balloon.frame.size.width - 12;
    textViewFrame.size.height = balloon.frame.size.height - 15;

    self.messageTextView = [[UITextView alloc] initWithFrame:textViewFrame];
    self.messageTextView.backgroundColor = [UIColor clearColor];
    self.messageTextView.returnKeyType = UIReturnKeyDefault;
    self.messageTextView.editable = YES;
    self.messageTextView.scrollEnabled = YES;
    self.messageTextView.autocorrectionType = UITextAutocorrectionTypeYes;
    self.messageTextView.autocapitalizationType = UITextAutocapitalizationTypeSentences;
    self.messageTextView.delegate = self;
    self.messageTextView.text = text;
    self.messageTextView.font = [UIFont systemFontOfSize:14.0];

    [balloon addSubview:self.messageTextView];

    [cell.contentView addSubview:balloon];

    return cell;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:23:47+00:00Added an answer on May 28, 2026 at 8:23 am

    @Peter Warbo: I’m suspecting following:

    • By default UIImageView’s userInteraction property is set to NO. Set it to YES on your ballon image view object.
      balloon.userInteractionEnabled = YES;

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Setup: I have a UITextView inside a UITableViewCell 's contentView . I want it
I have a UITextView inside of a UIScrollView that is configured offscreen when the
I have a UITextView that I'm trying to keep hidden from the user, except
I have a UITextView subclass that has an NSIndexPath property that is inside a
I have a UITextView that has a lot of content. I have a button
I have some text in a UITextView, that I would like to have show
I have a UITextView on a View that becomes the first responder. When I
I have an UITextView and I don't want check editable option, how can call
I have a UITextView included in a UITableViewCell. The layout is correct when the
I have a UITextView that is editable on a parent view along with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.