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

  • SEARCH
  • Home
  • 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 882897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:29:54+00:00 2026-05-15T12:29:54+00:00

to all im newbie developer and trying to create my first iPhone app, sorry

  • 0

to all im newbie developer and trying to create my first iPhone app, sorry my english not good

i trying to make 2 views and the second view display over first view, but the second view is not full screen, is 320×400 i cut 80pixels, to see the buttons from the first view… and i making that with tutorials from one book, but in book he making 1 button on first view and 1 another button in the second view… and i need 2 buttons on the first view, and can’t make it. please help me… i think is very easy but i dont know how to..

with this code make in book what i reading


**FirstView.h**

#import UIKit/UIKit.h

@interface FirstView : UIViewController {
}

/— declare an action for the Button view —/

-(IBAction) goToSecondView:(id) sender;

@end

**FirstView.m**

#import “FirstView.h”

#import “SecondView.h”

@implementation FirstView

SecondView *secondView;

-(IBAction) goToSecondView:(id) sender{

secondView = [[SecondView alloc] initWithNibName:nil bundle:nil];
[self.view addSubview:secondView.view];

}

-(void)dealloc {
[SecondView release];

[super dealloc];
}

**SecondView.h**

#import
@interface SecondView : UIViewController {
}

/*— action for the Return button — */

-(IBAction) goToFirstView:(id) sender;

@end

**SecondView.m**

#import “SecondView.h”

@implementation SecondView

-(IBAction) goToFirstView:(id) sender {

[self.view removeFromSuperview];}

And after linking on Interface Builder one button (goToSecondView) on the first view, and one button on the SecondView(goToFirstView)…. and i want to make this two buttons on the first view.

Help me please! , thank you.

  • 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-15T12:29:55+00:00Added an answer on May 15, 2026 at 12:29 pm

    Just put another button in the first view and move your code of goToFirstView to the FirstView controller. Then, change where you coded [self.view removeFromSuperview]; by a [secondView.view removeFromSuperview];

    I suggest you to read some tutorials of how the views and viewcontrollers are designed in iPhone.

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

Sidebar

Related Questions

Sorry for the second newbie question, I'm a developer not a sysadmin so this
Newbie question since I'm not up to speed using maven at all. I'm trying
hello dear developers. first of all - sorry for being the newbie.. i am
hi i am a newbie developer, building my first app, i have a impportant
First of all, I checked all the newbie mistakes. According to Firebug, that element
I'm a newbie Rails developer who is getting the following error when trying to
I am relative newbie to all this, so sorry if this sounds mad! I
sorry for this newbie question, as a Developer I never setup a web domain
I'm a newbie Cocoa developer and I'm developing my first application. I want to
I am newbie in android so i am not famalier to all errors here

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.