From 0597563051ab758ce82db03f43603a5be912e64e Mon Sep 17 00:00:00 2001 From: life Date: Wed, 11 Nov 2015 11:22:57 +0800 Subject: [PATCH] =?UTF-8?q?reset=20ipad=E4=B8=8B=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E9=97=AE=E9=A2=98,=20=E4=B8=8D=E9=9D=A0=E8=B0=B1,=20?= =?UTF-8?q?=E5=BE=97=E5=88=B0caller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Leanote/controller/note/NoteController.m | 11 ++++------- Leanote/controller/notebook/NotebookController.m | 9 ++------- Leanote/controller/tag/TagController.m | 9 ++------- 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/Leanote/controller/note/NoteController.m b/Leanote/controller/note/NoteController.m index 62d4863..f27cb8c 100755 --- a/Leanote/controller/note/NoteController.m +++ b/Leanote/controller/note/NoteController.m @@ -845,16 +845,12 @@ return titleLen; } +// 这种方式不靠谱, 因为内存的优化, 很可能得不到caller + // ipad下search bar上移, 但navigation却不隐藏 // ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到 // http://stackoverflow.com/a/5860412/4269908 -//- (UINavigationController *)navigationController { -// if (IS_IPAD) { -// return nil; -// } else { -// return self.navigationController; -// } -//} +/* - (UINavigationController *)navigationController { if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1]; @@ -870,6 +866,7 @@ } return [super navigationController]; } +*/ // 搜索 #pragma mark - UISearchDisplayDelegate Methods diff --git a/Leanote/controller/notebook/NotebookController.m b/Leanote/controller/notebook/NotebookController.m index 9a526c9..5eed1cd 100755 --- a/Leanote/controller/notebook/NotebookController.m +++ b/Leanote/controller/notebook/NotebookController.m @@ -793,13 +793,7 @@ // ipad下search bar上移, 但navigation却不隐藏 // ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到 // http://stackoverflow.com/a/5860412/4269908 -//- (UINavigationController *)navigationController { -// if (IS_IPAD) { -// return nil; -// } else { -// return self.navigationController; -// } -//} +/* - (UINavigationController *)navigationController { if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1]; @@ -815,6 +809,7 @@ } return [super navigationController]; } +*/ #pragma mark - UISearchDisplayDelegate Methods diff --git a/Leanote/controller/tag/TagController.m b/Leanote/controller/tag/TagController.m index d1a71a1..4545d56 100755 --- a/Leanote/controller/tag/TagController.m +++ b/Leanote/controller/tag/TagController.m @@ -673,13 +673,7 @@ // ipad下search bar上移, 但navigation却不隐藏 // ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到 // http://stackoverflow.com/a/5860412/4269908 -//- (UINavigationController *)navigationController { -// if (IS_IPAD) { -// return nil; -// } else { -// return self.navigationController; -// } -//} +/* - (UINavigationController *)navigationController { if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1]; @@ -695,6 +689,7 @@ } return [super navigationController]; } +*/ #pragma mark - UISearchDisplayDelegate Methods