Skip to content

Commit

Permalink
[fix] 메인뷰 검색내비 진입
Browse files Browse the repository at this point in the history
  • Loading branch information
seu11ee committed Nov 29, 2020
1 parent 8b97c19 commit 801323c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Mongle/Mongle/Source/VCs/MainTabMainVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,11 @@ class MainTabMainVC: UIViewController {
// MARK:- IBAction Method
@IBAction func searchButton(_ sender: Any) {
if let tabBar = self.tabBarController as? UnderTabBarController {
if let searchVC = tabBar.viewControllers![1] as? SearchTabMainVC {
searchVC.prevIdx = 0
tabBar.selectedIndex = 1
if let searchNavi = tabBar.viewControllers![1] as? UINavigationController {
if let searchVC = searchNavi.viewControllers[0] as? SearchTabMainVC{
searchVC.prevIdx = 0
tabBar.selectedIndex = 1
}
}
}
}
Expand Down

0 comments on commit 801323c

Please sign in to comment.