How to get reference to UIViewControllers baseview . I tried this
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow];
UIView * baseView = keyWindow.rootViewController.view;
but in the baseView variable I am getting UILayoutContainerView instead of the view inside the UIViewController .Correct me if I am wrong somewhere .