2
您好,我發現TPKeyboardAvoidingScrollView在github上,我跟着解釋,但它沒有工作TPKeyboardAvoidingScrollView不工作
#import "ajouterBilanViewController.h"
#import "TPKeyboardAvoidingScrollView.h"
@interface ajouterBilanViewController()
@end
@implementation ajouterBilanViewController
@synthesize scroll;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
我在廈門國際銀行增加了一個滾動視圖,並與TPKeyboardAvoidingScrollView 改變UIScrollView的,但沒有什麼工作。
#import <UIKit/UIKit.h>
@class TPKeyboardAvoidingScrollView;
@interface ajouterBilanViewController : UIViewController
@property (weak, nonatomic) IBOutlet TPKeyboardAvoidingScrollView *scroll;
@end
@ user31227590你應該檢查我的答案 –
你檢查了我的答案,讓我知道它是否對你有用。 –