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 10-13-2009, 10:30 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default Using Multiple connected .xib files for different views

I'm looking at making an app that uses multiple views - each connected by a button. I want it so that when I press a the button, it goes to the next view, perhaps with an image shown in between them.

How would I go about doing this? I've used multiple windows in a window based app before, but never multiple .xib files for individual views that I can design in IB.
Noise is offline   Reply With Quote
Old 10-13-2009, 02:34 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default

Anyone?
Noise is offline   Reply With Quote
Old 10-13-2009, 02:39 PM   #3 (permalink)
jsd
at this moment
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 900
jsd is on a distinguished road
Default

Quote:
Originally Posted by Noise View Post
I'm looking at making an app that uses multiple views - each connected by a button. I want it so that when I press a the button, it goes to the next view, perhaps with an image shown in between them.

How would I go about doing this? I've used multiple windows in a window based app before, but never multiple .xib files for individual views that I can design in IB.
are you asking how to do it without writing any code, purely using IB? i don't believe that is possible. somehow you have to trigger the transition between views. you can use a UINavigationController (hide the top bar if you don't want users to see it or be able to move backwards), or do it all manually with coreanimation (see the "viewtransitions" sample app at the apple site), or get really simple and do
Code:
[[view1 superview] addSubview:view2];
[view1 removeFromSuperview];
jsd is offline   Reply With Quote
Old 10-13-2009, 02:44 PM   #4 (permalink)
I will be a billionaire.
 
IphoneSdk's Avatar
 
Join Date: Sep 2009
Location: Scarborough, United Kingdom
Age: 17
Posts: 1,344
IphoneSdk is on a distinguished road
Default

loads of tutorials on this.

here are a couple:

YouTube - iPhone SDk Tutorial - Switching ViewsControllers With Animation

YouTube - Iphone SDK: How to Switch Views (Part 1)

YouTube - iPhone SDK: Info Button switching Views

Hope these help!
__________________
iOS Apps | Website | Twitter | Facebook
IphoneSdk is offline   Reply With Quote
Old 10-13-2009, 02:55 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Noise is on a distinguished road
Default

Quote:
Originally Posted by jsd View Post
are you asking how to do it without writing any code, purely using IB? i don't believe that is possible. somehow you have to trigger the transition between views. you can use a UINavigationController (hide the top bar if you don't want users to see it or be able to move backwards), or do it all manually with coreanimation (see the "viewtransitions" sample app at the apple site), or get really simple and do
Code:
[[view1 superview] addSubview:view2];
[view1 removeFromSuperview];
Nope - not just in IB. I'm not afraid of some extra code. I've just never done it before, so I wasn't sure of the right way to go about switching from one view to another with different .xib files.

Thanks for the links IphoneSDK. I'll check them out now.
Noise is offline   Reply With Quote
Reply

Bookmarks

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: 338
9 members and 329 guests
givensur, glenn_sayers, guusleijsten, ipodphone, mediaspree, mtl_tech_guy, Punkjumper, whitey99, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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