我遇到了一個奇怪的問題: 據瞭解,UITableView自動解決鍵盤隱藏文本字段的問題。 它爲我工作,直到我擴展UITableViewController添加更多的功能。準確地說,我沒有從UITableViewController繼承,但是通過創建一個類UITableViewController(property)來擴展它。 擴展屬性不是通過任何方式連接到鍵盤/文本字段問題 - 但上述功能在此擴展之後已損壞,現在鍵盤隱藏了我的文本字段。Xcode鍵盤滾動問題與擴展UITableviewController
有沒有人對此有過解釋? 此外,如果有延長課程經驗的人可以在這個過程中對敏感區域進行小費,那麼它會膨脹。
感謝,Elik
編輯: 這或多或少我的擴展類代碼和方法來實現:
@implementation UITableViewController (Property)
-(void) viewDidLoad
{
/* perform custom code */
[super viewDidLoad];
}
-(void)commonloadProperty{
/* custom code */
}
-(void) viewDidUnload
{
/* custom code */
[super viewDidUnload];
}
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
-(void)propertyHandlingStarted
{
/* custom code */
}
-(void)propertyHandlingCanceled
{
/* custom code */
}
-(void)propertyHandlingActionsClicked
{
/* custom code */
}
你能提一下你做了什麼擴展嗎? – Adithya