Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

Renaming project and view base 2nd view.

User Post

1:48 am
November 5, 2008


ericnk

iCoder

posts 8

1

I have a couple simple questions ( I am new to Mac and objective C, thus the simple nature of my questions ):

1) how do you rename a project in Xcode? I googled this and it appears there was at one time a rename feature in Xcode, but no longer. Am I just missing it?

2) attemting a simple view based application. view 1 contains a button, when pressed the application displays view 2. I believe all the tutorials with a 2nd view are navigation based. I attempted to duplicate the code from these to display my 2nd view, it didnt work. Is there a tutorial I am missing that uses multiple view view based views? Or code somewhere that does this? It has to be a simple mistake I am making.

10:16 am
November 5, 2008


piku9000

iCoder

posts 11

2

hello,

i've just answered this on, at least i think:

http://icodeblog.com/forum/general/display-a-view-when-button-click/page-1

:)

7:51 pm
November 6, 2008


ericnk

iCoder

posts 8

3

Piku – I was unable to get your code example to work with 2nd view.

Anyone : I am attempting a 2nd view to be displayed when a button is clicked on first view. both views are view based not navigation based. Should be extremely simple but I cannot get transition to 2nd view to work correctly. the program is called buttonview. here is the source of buttonview.h and buttonview.m – the problem should be in buttonview.m at location I have marked.

//  buttonviewViewController.h

#import <UIKit/UIKit.h>

@class View2ViewController;

@interface buttonviewViewController : UIViewController {

IBOutlet View2ViewController *view2ViewController;

}

- ( IBAction ) startview2;

@end

——————————————————————————————————–

//  buttonviewViewController.m

#import “buttonviewViewController.h”

@implementation buttonviewViewController

- ( IBAction ) startview2 {

// the following line is the problem I believe. what is correct way to transition to 2nd view?

[ self presentModalViewController:view2ViewController animated:YES];

}

// code continues here…

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

5 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 935 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.