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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:59:29+00:00 2026-06-07T00:59:29+00:00

I have a TabBar app with one of its tabs embedded in a NavigationController.

  • 0

I have a TabBar app with one of its tabs embedded in a NavigationController. This particular view is a form with text fields on it. I want to us the TPKeyboardAvoidingScrollView to move the UITextFields up when the keyboard moves into view. I have followed the instructions on the Github page but it just does not work at all.

This is what I have done as per the instructions:

  1. Added the TPKeyboardAvoidingScrollView.h and .m to my project
  2. Added a UIScrollView to the view on the storyboard (Xcode 4.3.1)
  3. Selected the ScrollView and in the inspector changed its class to TPKeyboardAvoidingScrollView
  4. Moved all my textfields into the UIScrollView

This did not work… So looking at the sample code I tried adding a few more things:

  1. In my view controllers .h file I added:

    @class TPKeyboardAvoidingScrollView;

  2. and linked the ScrollView resulting in this line of code being added:

    @property (weak, nonatomic) IBOutlet TPKeyboardAvoidingScrollView *scrollView;

  3. Imported the TPKeyboardAvoidingScrollView.h into my controllers .m file.

But still the drop-in code that everybody else seems to praise just does not work for me.

Can anyone point out my incompetence please?
Thanks in advance for any assistance you may be able to provide…

  • 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-07T00:59:30+00:00Added an answer on June 7, 2026 at 12:59 am

    I ran into this exact problem when trying to use this class as well and spent wasted a good deal of time on something that is supposed to be a time-saver.

    I set breakpoints inside the TPKeyboardAvoidingScrollView and noticed that none of them were ever hit. After trying several things I noticed some output in the debug window:
    “Unknown class TPKeyboardAvoidingScrollView in Interface Builder file” error at runtime

    I found some helpful information in this thread. Basically it seemed that the file was being optimized out because it was never actually being used in the code anywhere.

    In order to get it working again I did a couple things, any or all of which may be necessary:

    1. Click on the TPKeyboardAvoidingScrollView classes in the project outline. Reveal the Utilities panel on the right side in Xcode if you have it hidden and confirm that the files actually have some target membership or they will not be built.
    2. Delete the app from the device or simulator you are testing on so you get a fresh load.
    3. Rebuild the project and load onto the device/simulator. The error should be gone, you should be able to hit breakpoints in the TPKeyboardAvoidingScrollView classes and it should all work now.

    As an alternative you might want to look into the solution provided here by jhoule. The gist is that you add a call:
    [TPKeyboardAvoidingScrollView class];
    to your app delegate or elsewhere in your code to ensure that the code gets referenced and is not optimized out.

    Hope that helps.

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

Sidebar

Related Questions

I have a tabbar app, and I want a popover to come from one
I have a tabbar-based app with three tabs, one of them is a running
I have a tabBar App, with 5 tabs. The application was built in previous
I have a tabbar Controller . which have 5 Tabs in that one is
My app requires one set of tabs on the initial view, the last tab
I have an app with a main tabBar view and I would like to
I have a tabBar application. In the app delegate i create one NSMutableArray, one
I have an app with a tab bar with two tabs. One tab displays
In my app I have an action sheet and one of its buttons opens
I have a TabBar app (no Storyboards) with a UIView in the first window

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.