Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

navigation based project switching views with buttons

learningtocodelearningtocode Posts: 25Registered Users
edited December 2011 in Tutorial Discussion
I currently have a navigation based project that I am having issues with. What I am trying to do is within each navigation page I want a button that will take me to new page view. Something that looks like this.

Screen shot 2011-12-12 at 11.00.22 PM.jpg


What am I missing??

Here is my code if it helps.

.h

#import <UIKit/UIKit.h>


@interface Basics : UIViewController {

}

-(IBAction)newig:(id)sender;
-(IBAction)advanced:(id)sender;
@end


.m

#import "Basics.h"
#import "NewIG.h"
#import "Advanced.h"


@implementation Basics


-(IBAction)newig:(id)sender {
NewIG *second = [[NewIG alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:second animated:YES];
}

-(IBAction)advanced:(id)sender {
Advanced *second = [[Advanced alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:second animated:YES];
}
Screen shot 2011-12-12 at 11.00.22 PM.jpg
1 x 1 - 9K
Sign In or Register to comment.