1

I have a scroll view embedded inside of a uiviewcontroller that works 100% as expected until I open it as a modal view controller. Once that happens, the scroll size is about the size of the iOS Screen, but I'm definitely missing some stuff.Here is how I initialize my view controller in the appdelegate.

        UIWindow *window = [[UIApplication sharedApplication] keyWindow];
        UIViewController *currentController = window.rootViewController;
        while (currentController.presentedViewController)
            currentController = currentController.presentedViewController;

        UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
        UIViewController *newController = [storyBoard instantiateViewControllerWithIdentifier:@"Leads_Calls_SB"];

        [currentController presentViewController:newController animated:NO completion:nil];

        [[NSNotificationCenter defaultCenter] postNotificationName:@"callReceived"
                                                            object:nil
                                                          userInfo:userInfo];
4

0 回答 0