reset ipad下搜索框问题, 不靠谱, 得到caller

This commit is contained in:
life
2015-11-11 11:22:57 +08:00
parent 5d443101c0
commit 0597563051
3 changed files with 8 additions and 21 deletions

View File

@@ -845,16 +845,12 @@
return titleLen; return titleLen;
} }
// , , caller
// ipadsearch bar, navigation // ipadsearch bar, navigation
// ipadnavigationController, SWTableViewCell selectCell // ipadnavigationController, 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

View File

@@ -793,13 +793,7 @@
// ipadsearch bar, navigation // ipadsearch bar, navigation
// ipadnavigationController, SWTableViewCell selectCell // ipadnavigationController, 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

View File

@@ -673,13 +673,7 @@
// ipadsearch bar, navigation // ipadsearch bar, navigation
// ipadnavigationController, SWTableViewCell selectCell // ipadnavigationController, 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