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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:14:12+00:00 2026-06-16T20:14:12+00:00

I have an UIView named _containerView and inside this UIView I have a custom

  • 0

I have an UIView named _containerView and inside this UIView I have a custom UITextView named _codeTextView. When the app is loaded, these views occupies the whole screen, however, when the keyboard appears, I would like the screens to resize.

I have to following method when the keyboard appears:

- (void)keyboardAppears:(NSNotification *)notification
{
    _containerView.frame = CGRectMake(0, 0, 320, 216.0f);
    _codeTextView.frame = CGRectMake(0, 30, 290, 216.0f);
}

The containerView gets resized properly however, the _codeTextView in it does not resize and I really have no clue why it’s not resizing. I’ve already tried changing various options and it’s driving me crazy 🙁

Could anyone help me?

Thanks in advance!

  • 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-16T20:14:13+00:00Added an answer on June 16, 2026 at 8:14 pm

    I just created a project with the scenario you described. setFrame worked for all views with Autolayout disabled, but not with Autolayout enabled.

    Do you have Autolayout enabled for that View Controller? setFrame does not work well with autolayout.
    You’ll have to use constraints to programmatically adjust your views.
    (answer from: Can I use setFrame and autolayout on the same view?)

    You can find some help here: http://nszombie.com/2010/12/08/ConstraintBasedLayout.html

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

Sidebar

Related Questions

I have one ViewController, in this i have added one Custom UIView named as
I have a custom UIView called TiledImage which has a single property named tiledImage
I subclass UIView and have an NSString member named imgName; All views added to
i have a custom UIView which is presented from a UIViewController . This view
I'm developing an iOS application with latest SDK. I have this custom UIView: #define
I have a custom UIView which I named UIWheel that I am rotating upon
I have custom mapView (I named it JMMapView, which is inherited from UIView) where
I have a UIView that gets loaded with several custom NSObjects (graphShape). Each graphShape
I have a UIView, it is not inside UIScrollView. I would like to move
I have a UIView inside a UIView m and I want the inner UIView

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.