iOS : Custom Flip Segue (portrait and landscape layout) xcode 4

by Mark Deraeve 29. November 2012 23:02

Using segues is really easy. Get use to the visual programming! If you draw segues its still a shame that you cannot visual change the animation on the segues. But then the implementation of a custom animation is not so hard.

First create a new Objective C class and give it a usefull name. For example: FlipSegue. 

This class should inherit from the UIStoryboardSegue.

#import <UIKit/UIKit.h>


@interface FlipSegue : UIStoryboardSegue



Then in the implementation file we override the perform method. Below you can see that I do a check if the orientation is landscape or portrait, because then you will always flip from left to right. If not, when you change orientation, it will flip from top to bottom. Here is the full code for the custom segue implementation.

#import "FlipSegue.h"


@implementation FlipSegue

- (void)perform


    UIInterfaceOrientation orientation = [self.sourceViewControllerinterfaceOrientation];

    if (UIInterfaceOrientationIsPortrait(orientation))


        UIViewController *src = (UIViewController *) self.sourceViewController;

        UIViewController *dst = (UIViewController *) self.destinationViewController;

        [UIViewtransitionWithView:src.navigationController.view duration:0.8 options:UIViewAnimationOptionTransitionFlipFromLeft


                        [src.navigationController pushViewController:dst animated:NO];






        UIViewController *src = (UIViewController *) self.sourceViewController;

        UIViewController *dst = (UIViewController *) self.destinationViewController;

        [UIViewtransitionWithView:src.navigationController.view duration:0.8 options:UIViewAnimationOptionTransitionFlipFromBottom


                            [src.navigationController pushViewController:dst animated:NO];







Now the last thing we need to do is tell the Segue that it has to inherit from this class:

Tags: , ,

| |

Comments (9) -

austin personal injury
austin personal injury United States
1/4/2014 8:25:20 AM #

I'd personally be awesome if you could point me during the direction of the excellent platform. Progress loan payday loan I was recommended this net site by my cousin. I'm unsure

accident attorney Austin
accident attorney Austin United States
1/9/2014 9:02:21 AM #

diabetes ( Evelyne -,a3899235.html ) I cherished just as much as you will receive carried out correct listed here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get acquired an edginess around which you desire be delivering the subsequent. unwell unquestionably arrive further formerly all over again since specifically the identical nearly a great deal often inside of circumstance you shield this hike.

car accident attorney Austin
car accident attorney Austin United States
1/23/2014 6:08:38 PM #

my weblog :: levitra - After i originally left a comment I seem to own clicked the -Notify me when new opinions are added- checkbox and from now on each time a comment is additional I receive four emails together with the exact comment. Perhaps there is usually a way you will be capable to remove me from that service? Respect it!

Austin injury attorneys
Austin injury attorneys United States
1/26/2014 12:26:45 PM #

I marked this story with all my combined team where I have bookmarks. hello thanks for that material & add me to your contacts hola thanks to the content & add me towards your contacts I agree with a few with the other commenters about this data. Mesothelioma Lawsuits This unique is definitely an fantastic web site you've heading right here. The difficulty is particularly beneficial along with immediately to the level. Thrilled to read through very simple items much more specifics in your web site the next occasion. I am going to without delay grab your rss as I can not uncover your e-mail subscription hyperlink or newsletter service. Do you've got any? Remember to permit me realize in order which i could subscribe. Many thanks. Definitely, what a amazing web-site and instructive posts, I definitely will bookmark your weblog.Many of the Greatest! With havin so much content material do you at any time run into any issues of plagorism or copyright violation? My internet site incorporates a lot of exclusive material I've possibly written myself or outsourced but it seems a lot of it truly is popping it up all over the website without my permission. Does one know any ways to enable prevent articles from being ripped off? I'd undoubtedly value it. I conceive this net web site has obtained quite fantastic composed content articles blog posts. Heya i'm with the first time right here. I arrived across this board and i to seek out It truly useful & it helped me out significantly. I'm hoping to supply one particular issue again and support other folks such as you helped me. Merely wanna remark on handful of standard things, The website design is perfect, the written articles is really wonderful . qGAjUlda Tory Burch Shoes WTTAQCYhxjVmLVHllG cheap uggs outletWhy expend a while exploring abroad? Because foreign countries are unique back and forth from ours.We question whatever they and precisely uggsHi there! Another person everywhere over the my pretty own Myspace people shared this website leaving our way of existence on that basis I arrived to educate by yourself regarding present you with the element a be on the lookout I'm unquestionably loving the knowledge. I am bookmarking and don't just can they be the case tweeting this to explore my very own personal followers! Outstanding your dwelling business and superb style and structure and design and uggs outletOn about to be the alot of hand,it is actually undoubtedly plausible are buying and having Lingzi all of which is a lot more or less quite efficient all about the treating specified ailments. The are usually available around the six colors. These six, determined based on their color, are sorted into 5 diverse types according to educate on your own regarding their healing paths; violet and red are gorgeous honeymoons as effectively joints, skin as well as the heart; white is as well as lungs; beneficial to our environment along with liver; bluish also spleen and intestines; and black as properly as brain and kidney. It truly is that quite top-end and popular in order that you've in those days mainland uggsIf all your family members will need a lifetime assistant, I endorse you enjoy a this text,you could be capable of obtaining lots of uncommon issues, your existence not just can they be the case comprehensive significantly like colors,you'll be able to buy your suitable style and style as part of your uggs for women We searched everywhere to write-up regarding to this field.... Thanks alot hi-ya, terrific publish. Very enlightening submit. I included this blog site to my bookmarks. Luck is with me today as I've uncovered several astounding blogs. Just ahead of I had been at stoixima, which is really a website about sports. Many thanks Pretty good posting. I just stumbled on your internet site and wished to state that i have genuinely loved reading your website posts. Any way I'll be subscribing to the feed and that i hope you publish yet again soon. Hi there, i read through your website occasionally and that i possess a similar a single and that i was just pondering if you obtain a ton of spam responses? If so how does one reduce it, any plugin or anything you are able to advise? I get a great deal of lately it is driving me insane so any support is a great deal appreciated. Terrific write-up, you may have pointed out some superior facts , I as effectively conceive this s an exceptionally superb internet site. I just couldn't depart your website prior to suggesting which i really loved the standard details a man or woman deliver for your visitors? Is gonna be back again often in order to examine up on new posts You manufactured some first rate factors there. I regarded on the net with the difficulty and located most men and women will go together with collectively with the web site. Lol this article reminds me of hilarious issue my buddy bought involved in, he walked on to soaked hanckerchief, screemed "craaaaaaa*" and fell... + food flew to shirt of by stander, this happened at our wedding hoho... Aw, this was an extremely awesome submit. In imagined I need to put in crafting similar to this moreover - getting time and actual work to create a superb short article... however what am i able to say... I procrastinate alot and definitely not look to receive just one detail performed. The opposite working day, whilst I had been at perform, my cousin stole my iphone and tested to determine if it can survive a forty foot drop, just so she may be a youtube sensation. My iPad is now broken and she has 83 views. I know this really is entirely off topic but I had to share it with anyone! I just like the beneficial facts you give with your articles or blog posts. I'll bookmark your site and examine once again listed here frequently. I am quite certain I am going to find out plenty of new stuff right listed here! Great luck for that up coming! Hi there, just grew to become alert to the site through Google, and located that it is really seriously insightful. I'm going to watch out for brussels. I'll enjoy in case you keep on this in potential. Numerous people today will probably be benefited from your creating. Cheers! Hey! This really is my initial pay a visit to for your web site! We are a team of volunteers and commencing a fresh initiative in a very group in the exact specialized niche. Your website offered us beneficial information and facts to operate on. You have done a marvellous work! Under no instances would have assumed i'd master this today. Superior position. I used to be just searching for this data for a few time. Following 6 several hours of continuous Googleing, at past I got it within your site. I ponder what will be the lack of Google system that usually do not rank this type of enlightening sites in top rated from the list. Normally the major internet web sites are total of garbage. Just desire to say your article is as surprising. The clarity with your write-up is just spectacular and that i can assume you happen to be an expert on this topic. Effectively together with your permission allow me to seize your feed to help keep updated with forthcoming submit. Many thanks a million and please sustain the enjoyable do the job. An fascinating dialogue is truly worth comment. I think that you require to write extra on this topic, it won't be a taboo topic but usually individuals are not sufficient to talk on these kinds of topics. To your upcoming. Cheers Does one mind if I estimate a few within your posts as long as I give credit and sources again towards your internet site? My web site is while in the quite same niche as yours and my visitors would undoubtedly benefit from a good deal from the information you present in this article. Please let me know if this ok with you. Cheers! You made some great points there. I looked over the net to the issue and identified most persons will approve with the website. I'd choose to show some many thanks to this writer just for rescuing me from this type of situation. Soon after researching by the earth wide world wide web and coming across proposals which are not useful, I thought my entire lifestyle was done. Living without the presence of answers to your complications you have sorted out through this information can be a serious scenario, and those that could have within a wrong way damaged my entire career if I'd not encountered your internet site. Your main abilities and kindness in dealing with all the pieces was beneficial. I don't understand what I would've accomplished if I hadn't uncovered this type of topic such as this. It is really doable to at this instant seem in advance to my long run. Many thanks a good deal a great deal for this professional and awesome guide. I won't hesitate to refer your web site to any person who should have assistance relating to this matter. Most of whatever you position out happens for being astonishingly legitimate and it makes me question the reason why I had not looked at this using this type of light previously. This article truly did change the light on for me as far as this specific issue matter goes. Nonetheless at this time there is actually 1 issue I am not too comfortable with so while I attempt to reconcile that with the real core concept of your position, let me see exactly what all the rest of your site visitors need to say. Effectively performed. Howdy. I came across your website your on the web. This can be a fantastic short article! I preferred to cosmope you the incredibly minimal word to enable give many thanks once again with the astounding basics you may have contributed on this report. It was definitely remarkably open-handed with you to present without restraint just what a good deal of folks could possibly have offered for sale as an e-book to create some profit on their possess, even much more so since you could potentially have tried it in case you decided. Individuals inspiring concepts additionally worked just like the wonderful way to realize that quite a few persons have very similar eagerness just as mine to grasp the truth an incredible deal a lot more in respect of this matter. I am sure there are numerous much more pleasant situations up front for individuals that look through by your web site. A person essentially assistance to make siruoesly posts I'd personally state. This really is the incredibly very first time I frequented your online page and thus significantly? I amazed while using the investigate you built to make this certain publish remarkable. Fantastic work! Awesome put up! I have tried to run so many times and usually give up simply because I feel so pathetic, slow and exhausted afterwards. I am certainly about to must try out a number of your tips... Somebody essentially support to generate criitcally posts I'd state. This really is the pretty initial time I frequented your site web page and so much? I amazed while using the investigation you created to create this actual publish astounding. Excellent process! I heard that black mold was bad for your home. I did a little bit reeacrsh to search out out which i experienced a big challenge in my residence. I looked into black mold removal, and it just felt like maybe my household is far too overwhelmed by this problem. I by no means seriously thought that anything similar to this would happen, and that i am feeling the pressure to in fact get rid of this quickly, normally it would be a health hazard for me. I am scared, and that i barely go down to the basement anymore. It can be just far too risky for me to breathe in there. I'm also intending to be calling professionals to return see what they can do for me. With any luck ,, items will get completed quickly, and according to plan. I hate the way in which that black mold has affected my lifestyle, and that i am truly willing to carry out anything to enable the situation. Thanks a lot for sharing this with all men and women you really know what you will be speaking about! Bookmarked. Kindly additionally talk above with my web-site =). Thanks for every other excellent post. The place else could just anyone get that type of info in such a perfect usually means of composing? I've a presentation subsequent week, and that i am at the seem for such data. Thanks to your comment! You might be welcome to implement contents from my site. Howdy my family member! I would like to mention that this report is wonderful, terrific written and include approximately all crucial infos. I might like to look much more posts similar to this . Many thanks to your comment! Guaranteed additional are coming. Hi! I know this is kinda off topic but I used to be questioning which weblog

Austin personal injury lawyers
Austin personal injury lawyers United States
2/24/2014 11:35:29 PM #

of WordPress simply because I've experienced issues with hadkers annd I am seeking at alternatives for one more platform.

Antonina Courchesne
Antonina Courchesne United States
3/5/2014 9:02:16 PM #

Thank You Very Much for taking hard work to tell folks about it. This post quite valuable if you ask me.

CHAT United States
5/15/2014 5:30:43 PM #

I went over this internet site and I think you have a lot of great info, saved to favorites (:.

million hits secret
million hits secret United States
8/9/2014 11:03:26 AM #

Thanks a ton for your time and effort to have had these things together on this weblog. Robin and I very much treasured your ideas through your own articles in certain things. I recognize that you have a variety of demands on your timetable hence the fact that an individual like you took the maximum amount of time like you did to help people just like us via this article is actually highly treasured.

million hits secret review
million hits secret review United States
8/9/2014 12:26:04 PM #

I couldn't currently have asked for an even better blog. You happen to be ever present to offer excellent assistance, going directly to the point for simple understanding of your subscribers. You're undoubtedly a terrific pro in this arena. Thanks a ton for currently being there for people like me.

About the author

I started as a VB6 developer, programming all kinds of applications. I also got involved in the development of a e-market in ASP.

When .Net was introduced, I had the privilege to start in a team of professionals and develop a framework. I learned a lot and started to work as a c#.Net consultant from then on.

After 2 years I also got the chance to work for several months with SharePoint. SharePoint kept chasing me all the years after and when the product got more and more mature I started to love it. Then SharePoint was a daily occupation for me. I implemented a large quality document management system at PMRL being the only developer/technical analyst. Working close together with the QA department we succeeded in making and improving a very good Quality document management system. Its used up until this day.

I worked for 6 years as a .Net consultant for 2 of the largest consultancy companies in Belgium. One of my last projects with the consultancy was creating a custom LIMS system in c#.Net. This was a success and the customer asked me to stay and help to expand and maintain this LIMS. I had great years in this company. There was a focus on innovation and a lot of opportunities for improving and developing new IS systems. Apart from several small projects I further more improved the custom LIMS system, created a SOP library based on SharePoint and a web based Skill matrix system to handle the skills of the employees in the company. 

Then I was involved in transferring the LIMS to a new lab in Singapore. This was done in a short time frame. The deployment was again a success and it passed the GLP inspection tests. I learned a lot from the Quality engineers about validation of computerized systems.

At my current job I have a wide range of challenges. Mainly I'm still working with .Net ( and C#.Net). But outside of the Microsoft world I also do some ABAB programming in our SAP system. Like developing Adobe Forms and the program behind it. Or making small changes to customized code.

I'm working for 2 years with objective C now. Creating apps for factories across Europe. People in the factory are working with IPad to take pictures and upload them to orders and more. Already more and more projects are coming my way. The iOS apps are supported by a home made .Net architecture that exposes WCF services. Its working great. My second app is almost ready for deployment in factories. Now I started an App for the management team so they can manage projects on their IPAD and IPHONE. Next generation apps are build with a .Net Web API background combined with EF 6.0.

Soon I will start a new challenge at BDO. In preparation, I started to look into AngularJS. And I'm liking it. It's very fast to use, lots of documentation and works like a charm. Let's see if I'll still be as enthusiastic in a few months. I almost finished my first AngularJS web site. 

My linkedIn!

Month List

Tag cloud

Locations of visitors to this page