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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:44:43+00:00 2026-06-19T00:44:43+00:00

I have a textfield within a scrollview. When I tap into the textfield to

  • 0

I have a textfield within a scrollview.
When I tap into the textfield to add text, the keyboard pops up and the textfield disappears behind the keyboard. How to solve this?
The scrollview should scroll down so the textfield is still visible while typing.

I found several solutions for an Objective-C project. Unfortunately, I am using Mono Touch/C#.

I already created a delegate for the textfield.
What should I add to the method “public override void EditingStarted (UITextField textField)” to make this work?

public class CloseTextfieldDelegate : UITextFieldDelegate{
    private NewReportScreen controller;

    public CloseTextfieldDelegate(NewReportScreen newReportScreen)
    {
        controller = newReportScreen;
    }

    public override bool ShouldReturn (UITextField textField)
    {
        textField.ResignFirstResponder();
        return false;
    }

    public override void EditingStarted (UITextField textField)
    {
        //DO SOMETHING (MAKE TEXTFIELD VISIBLE SO IT DOESN'T DISAPPEARS BEHIND THE KEYBOARD)
    }
}
  • 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-19T00:44:44+00:00Added an answer on June 19, 2026 at 12:44 am

    I solved the problem with the following method in the CloseTextfieldDelegate class:

    public override void EditingStarted (UITextField textField)  //used to scroll the scrollview when editing a textfield
        {
            var yPositionTextFieldDescription =  (newReportController.usedTextFieldDescription.Frame.Location.Y - 143);
            var yPositionTextFieldRoom =  (newReportController.usedTextFieldRoom.Frame.Location.Y - 143);   
    
            if (textField == newReportController.usedTextFieldDescription){ 
                newReportController.usedScrollView.SetContentOffset (new PointF (0, yPositionTextFieldDescription), true);
            }
            else if (textField == newReportController.usedTextFieldRoom){
                newReportController.usedScrollView.SetContentOffset (new PointF (0, yPositionTextFieldRoom), true);
            }
        }
    

    I don’t think it is the best solution, but it works fine.

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

Sidebar

Related Questions

i have a input textfield within a container. This container is draggable, but now
I have embedded a ScrollView within a UIViewController which contains multiple text fields that
In my view i have Textfield.If i move that TextField it should open iphone
I have a textfield where the user can type what ever he want into
I have a Textfield, and when i print its text to a NSLog ,
I have a fragment within a TabHost that has multiple text fields in it.
How do I manipulate textfield variables within an iPhone app? I want to have
I have many textfields that show instruction text within the textbox (how the default
I have a class which contains a textfield and within that class an inner
I have a textField in my application which will be initiated programmatically (textField.setText() )

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.