Group Group Group Group Group Group Group Group Group

Dog Walk tutorial

#1

Hi, I am following your Dog Walk tutorial, and try implement it in my own project. However my main storyboard is different because I have a UITabBarController. So I found out that I need to rewrite the following:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
guard let navController = window?.rootViewController as? UINavigationController,
let viewController = navController.topViewController as? ViewController else
{
return true
}
viewController.managedContext = coreDataStack.managedContext
return true
}
to match my storyboard: entryPoint -> UINavigationController -> UITabBarController -> ViewController

opened #3
#4

@joachimfh Thanks very much for your question, and my apologies for the delayed response.

I believe you posted an identical question elsewhere. However, I believe you have implemented your UITabBarController incorrectly. You have not declared your UITabBarController anywhere in your AppDelegate. I would suggest you first get your UITabBarController running correctly first, and then look at implementing Core Data.

I hope this helps!

All the best!