I ran into this exact problem when trying to use this class, and spent a lot of time on something that should be time-saving.
I set breakpoints inside TPKeyboardAvoidingScrollView and noticed that none of them ever hit. After several attempts, I noticed some results in the debug window:
"Unknown class TPKeyboardAvoidingScrollView in Interface Builder file" error at runtime
I found useful information in this thread . It basically seemed like the file was optimized because it was never used in code anywhere.
To make it work again, I did a couple of things, any or all of which may be necessary:
- Click on the TPKeyboardAvoidingScrollView classes in the project outline. Find out the Utilities panel on the right side in Xcode if you have it hidden, and make sure that the files actually have a specific target membership or that they won't be created.
- Remove the application from the device or simulator on which you are testing to get a new load.
- Restore the project and download it to the device / simulator. The error should be removed, you should be able to hit breakpoints in the TPKeyboardAvoidingScrollView classes, and now everything should work.
Alternatively, you can look at the solution provided by jhoule here . The bottom line is that you are adding a call:
[TPKeyboardAvoidingScrollView class];
for your application delegate or elsewhere in your code to make sure the code receives the link and is not optimized.
Hope this helps.
source share