Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 12-13-2011, 12:04 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 21
learningtocode is on a distinguished road
Default navigation based project switching views with buttons

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)newigid)sender;
-(IBAction)advancedid)sender;
@end


.m

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


@implementation Basics


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

-(IBAction)advancedid)sender {
Advanced *second = [[Advanced alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:second animated:YES];
}
learningtocode is offline   Reply With Quote
Reply

Bookmarks

Tags
button, navigation tab, page view, xcode 4

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0