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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:18:38+00:00 2026-06-18T15:18:38+00:00

The app should forward to another view controller based on some data in a

  • 0

The app should forward to another view controller based on some data in a database. The database is working fine, but I can’t get the app to forward to the second view controller.
Here’s the code I have in place.

ssSecondViewController *tempView =[[ssSecondViewController alloc] init];
[self.navigationController pushViewController:tempView animated:YES];

I’m not getting any errors but when I run the code the screen forwards to a blank black view?

  • 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-18T15:18:39+00:00Added an answer on June 18, 2026 at 3:18 pm

    if you have already your viewController on storyboard then you can assign it by like below code & you must have set identifier to viewControler on storyboard

    ssSecondViewController *tempView =[self.storyboard instantiateViewControllerWithIdentifier:@"yourIdentifier"];
    

    set your viewController id here,in below image identifier is “MenuViewController”

    enter image description here

    if it is on .Xib file then

    ssSecondViewController *tempView =[[ssSecondViewController alloc] initWithNibName:@"yourIdentifier" bundle:nil];
    

    if you just want to add new viewController with programmetically without using already available viewController ,then you have to init it with initWithFrame then it shows viewController

    ssSecondViewController *tempView =[[ssSecondViewController alloc] initWithFrame:CGRectMake(0,0,320,480)];
    

    ssSecondViewController *tempView =[[ssSecondViewController alloc] init]; this line just allocates the viewController, it not have any location to draw it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an hybrid Android App using Phonegap/Apache Cordova. My app should get data
I have some data (Student info), and my app should be able to read
My app should implement login with facebook but I have noticed that every time
My app should render html, to answer when a user clicks ajax-link. My controller:
I'm trying to figure out how my new app should handle data. In previous
I am working on a simple Perl app that copies another Perl app and
I've read this Android save app settings/data in Internal/External Storage but I don't think
An Android/Iphone app will be accessing application data from the server. [Django-Python] How can
I'm trying to figure out how my iOS app should work after Facebook make
Im making an app that should let the user see video from the camera

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.