• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying another page/view on button click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying another page/view on button click


  • Subject: Re: Displaying another page/view on button click
  • From: The Rhythmic <email@hidden>
  • Date: Fri, 20 Apr 2012 13:24:52 +0530

I tried this:

        

        [UIView beginAnimations:nil context:nil];

        [UIView setAnimationDuration:1.5];

        [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];    

        [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];

        

        [self viewWillDisappear:YES];

        [historyView viewWillAppear:YES];

        self.view.hidden = YES;

        historyView.view.hidden = NO;

        [self viewDidDisappear:YES];

        [historyView viewDidAppear:YES];

        

        [UIView commitAnimations];


The current view vanished. And the new view 'historyView' seems to be getting called (I put a NSLog in the new view's 'viewDidLoad' and it's getting displayed), but, in the UI, am not seeing the new view getting displayed. The old view goes away & the screen is just blank/black. The new view has just a label in it, but it doesn't appear. Can you please help!



On Fri, Apr 20, 2012 at 12:13 PM, The Rhythmic <email@hidden> wrote:
Hi, My apologies if this question sounds so trivial. Am a newbie to iOS development. & so, am getting stuck even with the basics. Am using the book 'Beginning iOS 5 development' as a guidance and also google'ing around when I have specific questions & this is one question am not able to get clarity at.

I have a tabbed app. In the 2nd tab, on clicking a button, I want to show another page (do we call this 'view' iPhone app paradigm?) which has a graph. Is Navigation Controller the "only" way to do this? Am asking this b'cos, in the 2nd tab, I have only 2 pages to show:
Tab 2 , Page 1: Am done coding this. Works fine. Gets some user inputs, after which the user clicks a button.
Tab 2 , Page2 : Once the user clicks the button in page1, it has to show this page which has a graph.

I think that using NavgationController for just 2 pages is much ado. Any other way to do this? (User should also be able to come back to Page1 on clicking 'Back' button in Page2.

Thanks
Priya


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Displaying another page/view on button click (From: The Rhythmic <email@hidden>)

  • Prev by Date: Displaying another page/view on button click
  • Next by Date: Serious Issue: References To Products Lost / Wrong Dependency Evaluation
  • Previous by thread: Displaying another page/view on button click
  • Next by thread: Re: Displaying another page/view on button click
  • Index(es):
    • Date
    • Thread