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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:20:49+00:00 2026-06-14T04:20:49+00:00

I have placed out a UIView with a UIButton as a subview in a

  • 0

I have placed out a UIView with a UIButton as a subview in a ViewController in Interface Builder. I also have a UITextField where I have a action witch is triggered every time I type something in it. When I type something my view is supposed to get higher and the button should move to the bottom of the view. But when I type the first letter in the textfield the view resizes but the button doesn’t move. When I type a second letter the button moves. Probably because the view is already resized. My question is how to get this to work simultaneously when typing the first letter in the textfield.

My code:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyPressed:) name:UITextFieldTextDidChangeNotification object:textField];

- (void)keyPressed:(NSNotification*)notification{

    view.frame = CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, 200.0);
    button.frame = CGRectMake(button.frame.origin.x, (view.frame.size.height-button.frame.size.height), button.frame.size.width, button.frame.size.height);

}
  • 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-14T04:20:50+00:00Added an answer on June 14, 2026 at 4:20 am

    Solved it by putting the button at the bottom of the view. Then when I resized the view the button followed along by staying at the bottom. I didn’t need to programmatically move the button.

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

Sidebar

Related Questions

I have an app with a draggable UIView placed at the bottom. The draggable
I have placed som information to stringstream ss: stringstream ss (stringstream::in | stringstream::out); ss<<abc
I have a View Controller that is swapping UIView objects in and out. There
I have an admin namespace and a scaffold of companies placed out of the
I have placed an Image as a button in my App and I want
I have placed an image on the master page. I see the image at
I have a horizontal list on which I have placed borders on the li
I have multiple Node applications (build on Express framework). Now I have placed them
In Delphi 2010, I have placed 2 radio groups onto a form then added
I am working on a WordPress site and I have placed the following code

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.