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 8860769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:19:59+00:00 2026-06-14T15:19:59+00:00

I am using a UITextView which is simply not capable of scrolling if the

  • 0

I am using a UITextView which is simply not capable of scrolling if the text expands beneath the keyboard as can be seen in the picture below. Therefor I need some sort of scrolling that scrolls down the view if the text is in line with or beneath the keyboard. I have looked for similar examples/tutorials but not found any good ones working for my project.

I will post just how I have implemented my UITextView* commentField below in my .h file. What shall I do from here? If you can be a specific with example code it would be appreciated!. /Regards

http://tinypic.com/view.php?pic=kck6t&s=6

ReportViewController.h file:

@interface ReportViewController : MLUIViewController <MLReportErrorDelegate, UITextFieldDelegate, UIGestureRecognizerDelegate>
{

IBOutlet UITextView *commentField;
IBOutlet UITextField *emailField;

}

@property (nonatomic, retain) UITextView *commentField;

ReportViewController.m file:

- (void) textViewShouldBeginEditing:(UITextView *)commentField
{
???????????????????????
}
  • 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-06-14T15:20:01+00:00Added an answer on June 14, 2026 at 3:20 pm

    You need to set the textView to fully visible when typing. I think you cannot dynamically scroll when the text is going beneath to keyboard.

    You can do it by using the following code.

    //—-resize the scroll view (with keyboard)—-
    CGRect viewFrame = [scrollView frame];
    viewFrame.size.height -= keyboardRect.size.height;
    scrollView.frame = viewFrame;
    
    //—-scroll to the current text field—-
    CGRect textFieldRect = [yourTextView frame];
    [scrollView scrollRectToVisible:textFieldRect animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITextView which I am using to display text. Along the side
I am using a UITextView and I am confused about making the keyboard to
I have a UITextView in a UITableViewCell which grows together with it. Using [myTableView
Is there an open source reimplementation of UITextView and UITextField using Core Text? There's
i am using this code to show some text in UITextview...in ViewDidLoad Method self.fontSize
I have a UITextView which I'm assigning a large amount of text to (~25
I currently have a UITextView which is contained in a UIViewController using the following
I'm using an UITextView to hold static content (in Chinese, which means that the
I have a UITextView(not editable). When user tries to select text I want to
I am using UITextView to edit text. I want to use two UIButtons Edit

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.