Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:16:40+00:00 2026-05-31T17:16:40+00:00

I’m trying to create a nested storyboard structure to help break up a huge

  • 0

I’m trying to create a nested storyboard structure to help break up a huge storyboard (SVN merge nightmare)…Anyway I have a parent storyboard/viewController in this case ‘NestedStoryTestViewContoller’ and two other storyboards/ViewControllers (StoryOne and StoryTwo respectively)

When you click a button in NestedStoryTestViewContoller launches StoryOne as a modal view. I can then dismiss it and get back to the NestedStoryTestViewController. However if I want to go from StoryOne directly to StoryTwo I run into issues. What I would like to do is something like:

-(IBAction)goToStoryTwo{

    UIStoryboard *storyTwo = [UIStoryboard storyboardWithName:@"BoardTwo" bundle:nil];
    UIViewController *boardTwoVC = [storyTwo instantiateInitialViewController];
    boardTwoVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self.presentingViewController presentModalViewController:boardTwoVC animated:YES];   

}

but this does nothing.

I can dismiss the modal view with something like:

-(IBAction)goToMain{

     [self dismissModalViewControllerAnimated:YES];
 }

and I can call a new ModalView from NestedStoryTestViewController’s viewDidLoad method after dismissing the modalview but for that to work I would need to call some sort of method on NestedStoryTestViewCOntroller to set a property telling it which new modalview to load.

When I try to call such a method I get a nice big fat compiler error for what seems like no reason:

[self.presentingViewController setViewToLoad:@"StoryOne"];

triggers an error : Automatic Reference Counting Issue ‘Reciever type ‘UIViewController’ for instance message does not declare a method with selector ‘setViewToLoad”

The method is clearly defined and implemented and I have no idea why it throws this error. I get the same error when trying to set any properties on the ‘presentingViewController’ as well. If I put in a log statement like:

NSLog(@"parent class : %@",[[self presentingViewController] class] );

it logs ‘parent class: NestedStoryTestViewController’ as expected.

Any help is greatly appreciated as this is for work and hence pretty important and timely. I can provide project files if necessary.

Thanks,
Chris

Please Note: I am aware of the name change from ‘parentViewController’ to ‘presentingViewController’ and the project is 5.0 only so this is not the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:16:41+00:00Added an answer on May 31, 2026 at 5:16 pm

    The reason that you get the error on the following line:

    [self.presentingViewController setViewToLoad:@"StoryOne"];
    

    is because you are calling a method of your NestedStoryTestViewController class but the compiler thinks that it is a UIViewController class.

    Since you know what the class is, you need to “convert” (or cast) it to the proper type so that the compiler knows that it will respond to your method, like this:

    [(NestedStoryTestViewController *)self.presentingViewController setViewToLoad:@"StoryOne"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.