mirror of
https://github.com/leanote/leanote-ios.git
synced 2025-10-17 08:38:23 +00:00
reset ipad下搜索框问题, 不靠谱, 得到caller
This commit is contained in:
@@ -845,16 +845,12 @@
|
|||||||
return titleLen;
|
return titleLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 这种方式不靠谱, 因为内存的优化, 很可能得不到caller
|
||||||
|
|
||||||
// ipad下search bar上移, 但navigation却不隐藏
|
// ipad下search bar上移, 但navigation却不隐藏
|
||||||
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
||||||
// http://stackoverflow.com/a/5860412/4269908
|
// http://stackoverflow.com/a/5860412/4269908
|
||||||
//- (UINavigationController *)navigationController {
|
/*
|
||||||
// if (IS_IPAD) {
|
|
||||||
// return nil;
|
|
||||||
// } else {
|
|
||||||
// return self.navigationController;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
- (UINavigationController *)navigationController {
|
- (UINavigationController *)navigationController {
|
||||||
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||||
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
||||||
@@ -870,6 +866,7 @@
|
|||||||
}
|
}
|
||||||
return [super navigationController];
|
return [super navigationController];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// 搜索
|
// 搜索
|
||||||
#pragma mark - UISearchDisplayDelegate Methods
|
#pragma mark - UISearchDisplayDelegate Methods
|
||||||
|
@@ -793,13 +793,7 @@
|
|||||||
// ipad下search bar上移, 但navigation却不隐藏
|
// ipad下search bar上移, 但navigation却不隐藏
|
||||||
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
||||||
// http://stackoverflow.com/a/5860412/4269908
|
// http://stackoverflow.com/a/5860412/4269908
|
||||||
//- (UINavigationController *)navigationController {
|
/*
|
||||||
// if (IS_IPAD) {
|
|
||||||
// return nil;
|
|
||||||
// } else {
|
|
||||||
// return self.navigationController;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
- (UINavigationController *)navigationController {
|
- (UINavigationController *)navigationController {
|
||||||
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||||
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
||||||
@@ -815,6 +809,7 @@
|
|||||||
}
|
}
|
||||||
return [super navigationController];
|
return [super navigationController];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma mark - UISearchDisplayDelegate Methods
|
#pragma mark - UISearchDisplayDelegate Methods
|
||||||
|
|
||||||
|
@@ -673,13 +673,7 @@
|
|||||||
// ipad下search bar上移, 但navigation却不隐藏
|
// ipad下search bar上移, 但navigation却不隐藏
|
||||||
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
// ipad下模拟没有navigationController, 但是SWTableViewCell selectCell 要用到
|
||||||
// http://stackoverflow.com/a/5860412/4269908
|
// http://stackoverflow.com/a/5860412/4269908
|
||||||
//- (UINavigationController *)navigationController {
|
/*
|
||||||
// if (IS_IPAD) {
|
|
||||||
// return nil;
|
|
||||||
// } else {
|
|
||||||
// return self.navigationController;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
- (UINavigationController *)navigationController {
|
- (UINavigationController *)navigationController {
|
||||||
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||||
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
NSString *sourceString = [[NSThread callStackSymbols] objectAtIndex:1];
|
||||||
@@ -695,6 +689,7 @@
|
|||||||
}
|
}
|
||||||
return [super navigationController];
|
return [super navigationController];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma mark - UISearchDisplayDelegate Methods
|
#pragma mark - UISearchDisplayDelegate Methods
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user