New to XCode - Question [How do you go from one view to the next via a button]

Discussion in 'iOS Programming' started by eebean2, Aug 22, 2013.

  1. eebean2 macrumors newbie

    eebean2

    Joined:
    Aug 22, 2013
    #1
    Well to start I would like this to be an open Post for everyone to use for general questions. I know I have a lot and will post them all here.


    Please as general rule post questions as follows:

    Name:
    Email/ Skype:
    XCode Version:

    Question:


    To get started I've got a question and have searched high and low for an answer:

    Erik
    eebean2@me.com/eebean2
    Version 4.6.3 (4H1503)

    :apple: How do you go from one view to the next via a button. :apple:

    My app will have 9 main views with 7 side views and I would like to have buttons (round rect button, not navi button) to change pages. Is this possible? If so how do I do this? If not, what can I do to set up a way to change views?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    First of all: welcome, Erik.

    Second, as a MacRumors moderator, I have to advise you that we don't recommend a "general questions" thread. We prefer if each thread follows a single topic. This makes it easier for our users to follow along and also for the moderation team to deal with, in terms of off-topic posts.

    Now, on to your question:

    Let's take a step back here. How much do you know about iOS Programming? What have you done to learn the fundamentals? What you ask is obviously doable if you've spend any time even using iOS. So, in order to better answer your question, it would be helpful if we knew where you were coming from.
     
  3. eebean2 thread starter macrumors newbie

    eebean2

    Joined:
    Aug 22, 2013
    #3
    I am an avid iOS user. I'm in the process of renewing my iOS developer status as well. Rather it is possible or not matters not to me. A wise man once told me it is fun to do the impossible. As to experience, I do have some, but most of my work was sideline work over the years. My memory is messed up so I don't remember most of it anyways. Best place is to explain every detail and step for me. (I know this is a major pain, but scratch my back, and I WILL not forget it).

    Sorry bout that (general forum) I offered to see who else had problems and to find others with similar or ever better experiences.
     
  4. eebean2 thread starter macrumors newbie

    eebean2

    Joined:
    Aug 22, 2013
    #4
    New Help - PLEASE

    Ok, I found out how to get it all to work, and it did at first. Now it won't. Here is the error code.

    :apple:Error
    2013-08-22 21:15:59.562 Solver[9303:c07] Unknown class BetaButton in Interface Builder file.
    2013-08-22 21:15:59.566 Solver[9303:c07] Unknown class Next in Interface Builder file.
    2013-08-22 21:16:05.034 Solver[9303:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "ZUe-q9-chI-view-a54-gJ-OHp" nib but didn't get a UITableView.'
    *** First throw call stack:
    (0x1c9e012 0x10dbe7e 0x1c9ddeb 0x24f357 0x100ff8 0x101232 0x10cc25 0x30c3a3 0x109ee3 0x10a167 0x10a1a7 0x4760a2 0x467b99 0x467c14 0x10ef705 0x232c0 0x23258 0xe4021 0xe457f 0xe36e8 0x52cef 0x52f02 0x30d4a 0x22698 0x1bf9df9 0x1bf9ad0 0x1c13bf5 0x1c13962 0x1c44bb6 0x1c43f44 0x1c43e1b 0x1bf87e3 0x1bf8668 0x1fffc 0x205d 0x1f85)
    libc++abi.dylib: terminate called throwing an exception

    :apple:ViewController.h
    Code:
    //
    //  ViewController.h
    //  Solver
    //
    //  Created by Erik Bean on 8/22/13.
    //  Copyright (c) 2013 Erik Bean. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    
    @interface Screen1 : UIViewController
    
    @property (weak, nonatomic) IBOutlet UIButton *BetaButton;
    @property (weak, nonatomic) IBOutlet UIButton *Next;
    
    @end
    
    :apple: ViewController.m
    Code:
    //
    //  ViewController.m
    //  Solver
    //
    //  Created by Erik Bean on 8/22/13.
    //  Copyright (c) 2013 Erik Bean. All rights reserved.
    //
    
    #import "ViewController.h"
    
    @interface Screen1 ()
    
    @end
    
    @implementation Screen1
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    	// Do any additional setup after loading the view, typically from a nib.
    }
    
    - (void)didReceiveMemoryWarning
    {
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    }
    
    @end
    
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    What did you change?
     

Share This Page