When you create you segue in Storyboard, select "modal" instead of "push" (custom refers to a third type which I don't think you need). Select the segue and use the attributes inspector to give it a name. In my code example I use the name "editTitleBlock".
Up vote 0 down vote favorite share g+ share fb share tw.
In this case, I would make the transition, from a screen to another, animated but I don't have a NavigationController (and I don't want to insert one! ) Is it possible to not use a NavigationController and change views with a custom segue? In alternative, there is the possibility to set an action for a button and execute some rows of code befor performing a segue?
I found this solution : (IBAction)showDetailView:(id)sender { //code ..... self performSegueWithIdentifier:@"ShowDetail" sender:sender; } but it need navigtion controller... thank you to all and sorry for my bad englis! Animation xcode4 ios5 storyboard segue link|improve this question asked Feb 21 at 18:55Luca Rossi31.
When you create you segue in Storyboard, select "modal" instead of "push" (custom refers to a third type which I don't think you need). Select the segue and use the attributes inspector to give it a name. In my code example I use the name "editTitleBlock".
To set properties on the destination view controller (which will be the modal view controller) put a prepareForSegueMethod in your first view controller like this: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if (segue identifier isEqualToString:@"editTitleBlock") { segue destinationViewController setTitleFieldString: @""; segue destinationViewController setAltitudeFieldString:currentLocation. LocalizedAltitudeString; segue destinationViewController setLocationFieldString:currentLocation. LocalizedCoordinateString; segue destinationViewController setAuthorString:userName; if (segue identifier isEqualToString:@"cancel") { // do nothing special } } to get back to the first view controller use: self dismissModalViewController animated:YES.
Thank you very much t.j.! it works perfectly! I was banging my head since 2 days over this issue... – Luca Rossi Feb 21 at 23:59 Could you do me a favor an accept the answer. – T.J. Feb 22 at 0:10 sorry, I wasn't practice of the site :) – Luca Rossi Feb 23 at 9:42.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.