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

  • Home
  • SEARCH
  • 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 8925543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:43:37+00:00 2026-06-15T07:43:37+00:00

I have this scroll view problem.I have 2 screens in my app, Screen A

  • 0

I have this scroll view problem.I have 2 screens in my app, Screen A and Screen B. I have 10 buttons on my first Screen A. They all are placed on a scroll view. I also have 2 UITextViews at the bottom right corner of the screen. When i click in the textivew to enter value it brings up the keyboard. Now without closing/hiding the keyboard i am clicking a button on my app.This takes me to a different screen, screen B. There i have a textfield and an add button. I click in the textfield and a keyboard shows up. I enter the value.Click the add button. It adds the entered value to a tableview i have on that screen.Now without closing/hiding the keypad on this screen as well i hit back button.So i am back in screen A. But now the screen is distorted. All fields are scrolled way up to the screen.There is a white space about 50-60% of screen at the bottom.
I followed this link http://www.techotopia.com/index.php/Writing_iOS_5_Code_to_Hide_the_iPhone_Keyboard
It worked in the morning for screen B.I hit back and it brought me to screen A and without any abnormal screen. Why is it happening?Doing the steps in that link will suffice? Or is it not that simple and i have to do somemore steps?Please help .Thanks..

EDIT: So i noticed a pattern.I enter value in UItextview.Click button on screen A, move to screen B .Add value here also .Click back then brought back to screen A and view is all messed up.
So i did this testing
1.Change UITextview value (keyboard pops up),just click button ->screen B.Do nothing on screen B.Hit back.Screen A is fine.
2.Hit button on screen A without changing anything on UItextview (no keypad pops up).Move to screen B.Do nothing here and hit back to screen A. Screen A appears and is perfect.
3.Hit button Screen A without changing anything on UITtextview (no keypad pops up).Move to screen B. Enter value in textfield. Click add button.Hit back.Come back to screen A. Screen A is fine.
4.Change value of TextView(Keypad pops up).Without hiding/closing this, hit button.Screen B appears.Enter value in textfield(keypad pops up).Click Add Button. Click back. Come back to screen A. Screen A is messed up.
In summary when i change values/ or when keypad appears in both screens screen A is messed up. Can someone help me out?

  • 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-15T07:43:38+00:00Added an answer on June 15, 2026 at 7:43 am

    [self.view endEditing:YES]; does the trick. I added this in viewWillDisappear like this on both the screens.

    - (void)viewWillDisappear:(BOOL)animated
    {
    [super viewWillDisappear:animated];
    [self.view endEditing:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a scroll view with multiple images and i am using this code.
I have a scroll view that is the width of the screen but only
I have this really weird bug. When I scroll down my table view, down
In my app, I have a split screen in which the detail view is
In my app I need to do something like this: First of all I
I'm having a problem with the zoomToRect function. I have a scroll view that
I have this function working <script type=text/javascript> $(window).scroll(function() { if ($(window).scrollTop() == $(document).height() -
I have defined a tag with a CSS attribute overflow set to scroll. This
So I've got this UpdatePanel. Inside it I have a nifty little jQuery scroll
I have created a Universal app using Interface Builder. My view controllers are embedded

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.