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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-09-2010, 12:54 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 2
arriel is on a distinguished road
Default Connecting button to the view

Im very new in this development.
I'm having problem on connecting the the button to other view.

I ve tried this codes on my function but it doesn't work.


-(IBAction) V1buttonPressed{
view1 *viewone = [[view1 alloc] initWithNibName:@"view1" bundle:nil];
[self addSubview: [view1 view]];
[view1 release];
}


Can someone help me to fix this.
arriel is offline   Reply With Quote
Old 12-09-2010, 02:02 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 140
luckysmiles is on a distinguished road
Default

Hi arriel,

ur other view is what??Is it view controller's view or plain view..
and ur main view is what??window or view controller's view..
pls give some details..then i will post u the code...
luckysmiles is offline   Reply With Quote
Old 12-09-2010, 02:10 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 2
arriel is on a distinguished road
Default

multiviewViewController.h is my main view.

I put three buttons there to link to another view which is

view1.xib view2.xib and view3.xib.
arriel is offline   Reply With Quote
Old 12-09-2010, 03:26 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 140
luckysmiles is on a distinguished road
Default

Quote:
Originally Posted by arriel View Post
multiviewViewController.h is my main view.

I put three buttons there to link to another view which is

view1.xib view2.xib and view3.xib.
try this...

-(IBAction)doneid)sender
{

myview *m=[[myview alloc]initWithFrame:CGRectMake(0,0,360,480)];
[self.view addSubview:m];

}
luckysmiles is offline   Reply With Quote
Reply

Bookmarks

Tags
button, changing view, multiview, view

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
» Online Users: 394
7 members and 387 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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