[iPhone] Really struggling with views and transitions.  Please Help.

Hello All,
First off let me apologize; I've been trying to do this on my own, reading the docs and guides and such, but I just can not get this to work. I feel like once I understand this scenario I'll be able to learn the rest on my own.
Basically I have a simple sample project structured as follows:
MyAppDelegate: typical delegate class
MainViewController: View controller object associated with the main view
TitleViewController: View controller object associated with the title screen view
NextViewController: View controller object associated with the second view (after title screen)
I currently have 3 nib files, one each associated with MainViewController,TitleViewController, and NextViewContoller
the Title View has a button on it
The desired flow of the application is as such:
1) My AppDelegate initializes MyViewController when it loads
2) MyViewController contains the two other view controllers (they are instance variables in the class)
and loads in the TitleScreen View (via addsubview).
This works fine, I am having trouble with the following:
3) The button on the title screen is pushed telling MyViewController to transition the TitleView out and the NextView in
I have tried modifying the code from the Transition View app but its just too complicated for me at present and I can't get it to work.
Can a kind soul out there please provide detailed assistance...maybe the implementation code for those 4 objects I mentioned.
Maybe we can make some kind of tutorial or guide so that other people will find it useful as a precursor to diving into the Transition View Sample App?
I think it would be interesting to have two versions of this well; one that uses nib files for each view and one that does it all purely programatically. This would definitely help newbies like me see how the nib approach is handled behind the scenes.
Again, I apologize for my ignorance...I really am trying. Thanks.

hi scotopia,
i've gone thru that helpless state too, so i'm going to help you as much as i can
the way i did it is slightly different from yours.
on top of
myAppDelegate,
MainViewController, titleViewController, nextViewController (view controllers class)
i have titleView and nextView (view class)
and i did not use addsubview.
inside main view controller you will need to create the titleviewcontroller and nextviewcontroller.
and inside both titleviewcontroller and nextViewController, u need to create the rootViewController and their respective view objects, i.e. titleView or nextView.
inside titleView you define all your methods etc. that will take place in that screen. and place your button code here.
i've managed to trace my footsteps, and found out that the metronome sample code will be easier to understand.
i hope this helps.

Similar Messages

  • Text in Hebrew has gone really weird in Motion and FCP - please help!

    Hi,
    I have been working in a project for a long time, and produced hundreds of simple titles in Motion in Hebrew. The font I have used throughout is Arial Rounded MT Bold.
    In the latest title I added one text object and made it Italic. Since then, all my Hebrew text in this title and now any previous title I open appears really weird (the vowles are disjoined from the consonants). I have turned off the Italics option on all the titles but it still does the same thing.
    This occurs even in a brand new title, where I paste the Hebrew directly into a new text object.
    I am desperate for someone to help me, as I have a tight deadline on this one. All previous titles I open appear the same, even though they were fine in the past. I have tried deleting the preference file.
    I am using Motion 4 (FCS 3) on a iMac bought last year, quad core intel.
    Please help!
    Thanks

    Thank you so much!
    Arial did not work, but Arial Bold and Arial Hebrew did!
    The font doesn't match what I was using before. I have no idea what it was using previously, but at least I can proceed from here. My previous projects have all been output to movie files so even if the motion files are now messed up, it's not the end of the world!
    Thanks again

  • Problems with titles and backgrounds PLEASE HELP

    At the beginning of my movie, I have inserted a title (pixie dust) which prompts me to include a background. I have done so. However, when i play the movie in full screen sometimes the title doesn't even show up at other times the title shows but without the pixie dust feature. I have tried to rectify this using precision editor but it doesn't work. When I play the video in the project library the pixie dust feature shows up. Please help. What am I doing wrong?

    This seemed to be a bug in iMovie v.8.0.6. I have the same problem independently of the font and the background but only at the beginning of the project.
    To avoid this problem make a short transition before the title clip and the text will appear in fullscreen mode too.
    Good luck.

  • Problem with threads and simulation: please help

    please help me figure this out..
    i have something like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DrawShapes extends JApplet{
         private JButton choices[];
         private String names[]={"line", "square", "oval"};
         private JPanel buttonPanel;
         private DrawPanel drawingArea;
         private int width=300, height=200;
         public void init(){
              drawingArea=new DrawPanel(width, height);
              choices=new JButton[names.length];
              buttonPanel=new JPanel();
              buttonPanel.setLayout(new GridLayout(1, choices.length));
              ButtonHandler handler=new ButtonHandler();
              for(int i=0; i<choices.length; i++){
                   choices=new JButton(names[i]);
                   buttonPanel.add(choices[i]);
                   choices[i].addActionListener(handler);
              Container c=getContentPane();
              c.add(buttonPanel, BorderLayout.NORTH);
              c.add(drawingArea, BorderLayout.CENTER);
         }//end init
         public void setWidth(int w){
              width=(w>=0 ? w : 300);
         public void setHeight(int h){
              height=(h>=0 ? h : 200);
         /*public static void main(String args[]){
              int width, height;
              if(args.length!=2){
                   height=200; width=300;
              else{
                        width=Integer.parseInt(args[0]);
                        height=Integer.parseInt(args[1]);
              JFrame appWindow=new JFrame("An applet running as an application");
              appWindow.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              DrawShapes appObj=new DrawShapes();
              appObj.setWidth(width);
              appObj.setHeight(height);
              appObj.init();          
              appObj.start();
              appWindow.getContentPane().add(appObj);
              appWindow.setSize(width, height);
              appWindow.show();
         }//end main*/
         private class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   for(int i=0; i<choices.length; i++){
                        if(e.getSource()==choices[i]){
                             drawingArea.setCurrentChoice(i);
                             break;
    }//end class DrawShapes
    class DrawPanel extends JPanel{
         private int currentChoice=-1;
         private int width=100, height=100;
         public DrawPanel(int w, int h){
              width=(w>=0 ? w : 100);
              height=(h>=0 ? h : 100);
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              switch(currentChoice){
                   case 0:     g.drawLine(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 1: g.drawRect(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 2: g.drawOval(randomX(), randomY(), randomX(), randomY());
                             break;
         public void setCurrentChoice(int c){
              currentChoice=c;
              repaint();          
         private int randomX(){
              return (int) (Math.random()*width);
         private int randomY(){
              return (int) (Math.random()*height);
    }//end class drawPanel
    That one's from a book. I used that code to start with my applet. Mine calls different merthod from the switch cases. Say I have:
    case 0: drawStart(g); break;
    public void drawStart(Graphics g){
      /* something here */
    drawMain(g);
    public void drawMain(graphics g){
    g.drawString("test", x, y);
    //here's where i'm trying to pause
    //i've tried placing Thread.sleep between these lines
    g.drawLine(x, y, a, b);
    //Thread.sleep here
    g.drawRect(x, y, 50, 70);
    }I also need to put delays between method calls but I need to synchronize them. Am I doing it all wrong? The application pauses or sleeps but afterwards, it still drew everything all at once. Thanks a lot!

    It is. Sorry about that. Just answer any if you want to. I'd appreciate your help. Sorry again if it caused you anything or whatever. .n_n.

  • My Iphone got wet with nesquick (milk+chocolatte) :( please help!

    my iphone 4s got wet with nesquick. I cleaned the phone, and notised that the sound was not clear anymore; then I tried to turn it off but soon I realized that I can't do that because it turns on immediatly. What should I do? for now I put the phone in rise. hope it will help :/

    Leave it for several days ,if that does not work you can buy
    an out of warranty refurbished unit from Apple Retail Stores
    at $199 if in the US or similar at local currency if elsewhere
    As I suspect you are aware you have invalidated the warranty
    by getting it wet

  • Macbook wireless network question with vista and xp PLEASE HELP

    Ok I just bought a macbook computer and introduced it to a windows family using vista and xp computers. I was able to set up wireless networking and surf the internet with all computers. However I cannot see the windows computers from the mac but can see the mac on the windows computers. I have a linksys wrt54g router. I tried everything and Im unable to see other computers or the printer thats attached to the desktop pc using vista. I went ahead and purchased the extreme airport router and after being on the phone with apple care for 3 hours and reformatting the operating system on the mac I was finally able to see the other pc's and installed bonjour for windows on all windows based pc's and was able to print from the mac without a glitch but the windows based pc's were horribly very very slow printing using bonjour. Needless to say I didnt want to spend all the extra money on a apple router for all this to work and after doing so the printing from windows machines just plain *****. So I returned the airport extreme and Im back to the linksys. When the linksys wrt54g is hooked up I cannot see the printer or other windows machines. Any ideas please to keep my current setup so I dont have to go out and by more apple products for everything to play nice. Thanks

    What is the exact model number of your Linksys router for this Linksys forum??

  • I'm really frustrated with iTunes!! Please help

    iTunes has been prompting me to download the new version for months, but after what happened to me the last time I was very wary of upgrading (see http://forum.digitalspy.co.uk/board...ad.php?t=241985 ) Today I decided it was probably just an unfortunate fluke first time round and so I upgraded. Exactly the same thing has happened again. When I click update I am taken to the apple site where it promps me to download. After doing this it replaces the icon on my desktop with the new version. When I open the new version there is nothing there, just like a brand new install for the first time, but similiarly to last time all the old files are still on the computer. I have now added them to my library, but it is incredbly annoying, I've lost all my playlists, lost all the play counts etc. Why on earth doesn't iTunes just upgrade like most other pieces of software and retain its settings and details? I tried to import the old library, which is actually still there but I just keep getting a message saying "error 10". Does anybdy know why this keeps happening and can you give me any tips to avoid it in the future?
    all help will be much appreciated

    hiya!
    i'm not sure i like this erratic behavior by the PC. (i daresay you're not having much fun either.)
    let's pause for a moment (when it comes to trying to directly attack the symptoms you're getting) and do some spring cleaning and maintenance instead.
    download fresh definitions and run vigorous virus and spyware scans. if your security software providers offer them, run online scans too. (they can sometimes pick up an infection on a PC when the security software on the PC has been compromised.)
    do a disk cleanup, run your favorite disk checking/repair utility, and do a disk defrag. reboot. repair/refresh your network connection (if you've got one).
    does that show up anything unusual?
    love, b

  • Intermittent connection with netgear1000 and orange, please help

    Hi there,
    I bought a mbp 2011 and installed orange broadband with netgear1000. I am having intermittent connection, anyone has an idea?
    Thanks for the help would be much appreciated.
    Lebake

    1.with ur laptop wired to the rtr, open IE. in the address bar, type http://192.168.1.1. it will ask for authentication. leave ther username blank and in password type admin.
    2.on the setup page, click on the tab wireless and then select manual setup
    3.change the w/l n/w name to ur preference, radio band to standard 20 mhz and standard channel to 6 and then save settings.
    4. click on subtab w/l security, change the security mode to wep and in the key type any 10 digit no. and make sure this is ur password for the w/l. Then save settings
    5.now try to connect to this w/l n/w on ur laptop
    6. for ur PS3, go to n/w settings-internet connection settings-custom-and enterv the w/l settings manually.
    Linksys Setup CD said "Use Win XP or better"
    So i installed Linux

  • Have mac 10.6.8 firefox will not open certain websites and if you do open them logins fail , also with safari and chrome, please help

    recently updated mac to this version, and since then certain web pages timeout or server not found or they just hang, you get the address come up but the blue wheel spins and the page never loads. (this is the same in safari and chrome) but i can access some pages, and also thunderbird, msn messenger etc, i have cleared history, checked firewall, and done updates still no luck, also if i do get a page to appear ie: ebay / paypal etc they are in a strange format and then it fails at logins, is this a https/http problem or due to a upgrade or more sinister, please advise

    You can try to reset (power off/on) the router.
    You can try to disable IPv6<br />
    See http://kb.mozillazine.org/Error_loading_websites

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • Dear Apple,please help me.the glitch and lags on games made me sad beause i am too love with my 4s. Why iOS 7 really made me sad...please help me.im beg for you.

    Dear Apple,please help me.the glitch and lags on games made me sad beause i am too love with my 4s. Why iOS 7 really made me sad...please help me.im beg for you.

    www.apple.com/feedback/iphone.html
    No one from Apple is listening on these forums.

  • I have some trouble with Safari!  Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me!

    I have some trouble with Safari! 
    Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me! I want safari to open the google search link in the same window and tab! How to fix that?
    Please help me!!!
    Thank you!

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • Restore settings on iPhone 3G now it's turning on and off with only apple logo, please help me what do I do?

    Restore settings on iPhone 3G now it's turning on and off with only apple logo, please help me what do I do?

    Anybody there

  • I want to put music on my iPhone but when I want to do it it keeps telling me that I can't to id with a sign. Please help me?

    I want to put music on my iPhone but when I want to do it it keeps telling me that I can't to id with a sign. Please help me?

    You will have to upgrade your operating system version and possibly your whole computer.  We cannot provide more information easily until we know more about your system.
    Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About This Mac", then "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).
    Apple does tell you about required equipment for the iPhone -- in 8 point medium gray type on a light gray box.   The Store associates kind of automatically assume everybody is running a new model computer and the one I met when we bought our iPhone had never seen a pre-2008 Mac and was somewhat puzzled why anybody would own such an antique.

  • I need to install the find my iPhone app on my ipad, it's won't install. Any reasons. Do I need to change something in my settings? I am up to date with my ios7. Please help!

    I need to install the find my iPhone app on my ipad, it will not install. Any reasons. Do I need to change something in my settings? I am up to date with my ios7. Please help!

    Try closing the App Store app via the iPad's taskbar and then do a soft-reset and see if you can install it after the iPad has restarted. To close the App Store : double-click the home button to open the taskbar, and then swipe or drag the App Store app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

Maybe you are looking for

  • How to add connection between two Web Part Data Views in sharepoint designer 2013

    Hi I have problems with connect two data view I have a SQL server database named Mini In Mini database I have two tables:  dbo.Table_A and dbo.Table_B Table_A design and Table_B design In the internet browser it look like this after I add the connect

  • Materialized View Logs Query

    Hi All, I had some problem with my Materialized views, that's why Dropped all of the Logs + Materialized Views from my Production Database. Kindly tell me that, Is there any Query, which I can run and make Materialized View Logs from my Existing Tabl

  • Error in Recover Database -  ORA-01547 , ORA-01194 and ORA-01110

    Hello folks, I am facing a problem when recovering a database.. I made each tablespace in backup mode, then copied the datafile. I revert back the tablespace status to normal status.Once all datafiles are copied to target location, i created the cont

  • Problem creating a dynpro with TabStrip Screen

    Hi experts I need to add one screen to one report wich has 4 screens, when I tried to copy one of them, everything is ok, but on Attributes the "selection screen" radiobutton is not active, how can I activate it? to make changes on report and everyth

  • Violation of PRIMARY KEY constraint in JDBC receiver

    Hi Experts ! I am configuring a JDBC Receiver. I need to insert the records and if the same record is coming again i need to update the records in my database.So I have used action "UPDATE_INSERT". But now I am getting the error, "Violation of PRIMAR