iPhone — addSubview navController.view [UIWindow addSubView] Unrecognized Selector

For those getting the error [UIWindow addSubView] unrecognized selector sent to instance X, make sure you re-write your code to use the addSubview method, not addSubView (capital V is wrong)

    // wrong.
    [self.window addSubView:navController.view];

    // right.
    [self.window addSubview:navController.view];

Leave a Comment