我正在尝试将其发送到另一个成功登录的视图,所以我只是在这个阶段测试我的逻辑
let viewController:UIViewController = self.storyboard?.instantiateViewControllerWithIdentifier("myMainView") as! mainController
self.presentViewController(viewController, animated: true, completion: nil)
我已经为我的标签栏控制器提供了myMainView的名称,但我再次提供了
无法转换类型' UITabBarController' (0x1abc8c828)到' aperturewift.mainController' (0x1000210a0)。 2016-10-09 11:56:17.549751 aperturewift [544:55199]无法转换类型' UITabBarController' (0x1abc8c828)到' aperturewift.mainController' (0x1000210a0)。
答案 0 :(得分:1)
如果您发送到UITabbarController,您应该将mainConrtoller更改为UITabbarController和标识符。您必须为UITabController
设置标识符 HasMany(t => t.Users)
.WithMany(t => t.Books)
.Map(m =>
{
m.ToTable("UserBookMap");
m.MapLeftKey("Id");
m.MapRightKey("UserID");
});