mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-24 20:26:02 +10:00
do not set selectedIndex; code order
This commit is contained in:
+4
-14
@@ -316,22 +316,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
println("matchSharedFeed: \(feed)")
|
||||
|
||||
guard let tabBarVC = self?.window?.rootViewController as? YepTabBarController else {
|
||||
return
|
||||
}
|
||||
|
||||
tabBarVC.selectedIndex = 0
|
||||
|
||||
guard let nvc = tabBarVC.selectedViewController as? YepNavigationController else {
|
||||
return
|
||||
}
|
||||
|
||||
let storyboard = UIStoryboard(name: "Main", bundle: nil)
|
||||
let vc = storyboard.instantiateViewControllerWithIdentifier("ConversationViewController") as! ConversationViewController
|
||||
|
||||
guard let
|
||||
tabBarVC = self?.window?.rootViewController as? UITabBarController,
|
||||
nvc = tabBarVC.selectedViewController as? UINavigationController,
|
||||
vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ConversationViewController") as? ConversationViewController,
|
||||
realm = try? Realm(),
|
||||
feedConversation = vc.prepareConversationForFeed(feed, inRealm: realm) else {
|
||||
feedConversation = vc.prepareConversationForFeed(feed, inRealm: realm)else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user