2014-03-29 45 views
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 
+1

@ user31227590你應該檢查我的答案 –

+0

你檢查了我的答案,讓我知道它是否對你有用。 –

回答

2

這裏是你如何使它發揮作用,

希望這將幫助你.. You need to set your custom class as shown

REST進行管理BY TPKeyboardAvoidingScrollView FOR YOU