|
|
@@ -363,18 +363,24 @@
|
|
|
else
|
|
|
if([self.content get_segmentcount]==0)
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
self.table.hidden =true;
|
|
|
self.norecordLabel.hidden=false;
|
|
|
|
|
|
-
|
|
|
- UIAlertController *alertVC = [UIAlertController alertControllerWithTitle: @"Warning"
|
|
|
- message: @"No Search Result."
|
|
|
- preferredStyle: UIAlertControllerStyleAlert];
|
|
|
- UIAlertAction *action = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
- [weakSelf.navigationController popViewControllerAnimated:false];
|
|
|
- }];
|
|
|
- [alertVC addAction:action];
|
|
|
- [weakSelf presentViewController:alertVC animated:YES completion:nil];
|
|
|
+ if(self.tabBarController.childViewControllers.count==1)
|
|
|
+ {
|
|
|
+ UIAlertController *alertVC = [UIAlertController alertControllerWithTitle: @"Warning"
|
|
|
+ message: @"No Search Result."
|
|
|
+ preferredStyle: UIAlertControllerStyleAlert];
|
|
|
+ UIAlertAction *action = [UIAlertAction actionWithTitle:@"Back" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
+ [weakSelf.navigationController popViewControllerAnimated:false];
|
|
|
+ }];
|
|
|
+ [alertVC addAction:action];
|
|
|
+ [weakSelf presentViewController:alertVC animated:YES completion:nil];
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|