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 9073817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:30:23+00:00 2026-06-16T18:30:23+00:00

Basically I have two xibs, the first one is the main xib that contains

  • 0

Basically I have two xibs, the first one is the main xib that contains a button that triggers an IBAction that calls:

UIViewController *overlaywindow = [[UIViewController alloc] initWithNibName:@"NewInvenView" bundle:nil];
overlaywindow.modalPresentationStyle = UIModalPresentationFormSheet;
overlaywindow.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

[self presentViewController:overlaywindow animated:YES completion:nil];

This produces the result I want.

However, in NewInvenView.xib I’m trying to create a button that will dismiss itself (and close the PresentingView). I link the button with the NewInvenViewController.h and implements the method in NewInvenViewController.m. But when I run it, it doesn’t work.

Whenever the button is triggered, the function is called but I get an error:

2012-12-24 20:33:50.984 Dokodemo[1467:907] * Terminating app due to
uncaught exception ‘NSInvalidArgumentException’, reason:
‘-[UIViewController filterstock:]: unrecognized selector sent to
instance 0x21033990’…

I think it’s also important to note that, I get an error regardless of what is inside the function implementation. Even when the function does nothing

why is this?

  • 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-06-16T18:30:25+00:00Added an answer on June 16, 2026 at 6:30 pm

    If you Do the flip Animation with navigationController it will be Easy.

     -(void)goToNextView:(id)sender{
    
              NextView *info3 = [[NextView alloc]initWithNibName:@"NextView" bundle:nil];
                UINavigationController * nvc = [[UINavigationController alloc] initWithRootViewController:info3];
    
                info3.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
                [self.navigationController presentModalViewController:nvc animated:YES];
    
            }
    

    // if you using latest Version of iOS Just Change the following

    [self.navigationController presentViewController:nvc animated:YES completion:nil];

    in your Second view Controller You can use this to Dismiss.

    -(IBAction)goToPrevious:(id)sender
    
    {
    
    [self.navigationController dismissModalViewControllerAnimated:YES];
    
    // For latest Version
    
    // [self.navigationController dismissViewControllerAnimated:YES completion:nil];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have two external css in my page. The first Main.css contains all
I am using WickedPDF, and I have basically two gems that include the binaries:
I have two action methods that are conflicting. Basically, I want to be able
basically have two questions. 1. Is there a c++ library that would do full
So I basically have two subviews within my main view. I created each subview
basically I have two input fields, name and username. The idea is that the
Basically I have two applications: a PHP web application that runs over Apache and
Basically I have two three styles for a button: normal, hover and active. Once
Basically I have two ways for writing something First: <?php echo link_to( static_image_tag( $object->getImageWebPath(),
Basically I have two forms The first form Is a simple select box which

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.