Jump for IOS UIView

Source: Internet
Author: User

#pragma mark returns the current UIView uicontroller-(Uiviewcontroller *) funrespondervc{UIView *net = [Super Superview];//Return to the previous level of view.        Until the Uiviewcontroller view is found uiresponder *nextresponder = [next Nextresponder]; if ([Nextresponder Iskindofclass:[uiviewcontroller class]]) {return (Uiviewcontroller *) nextres            Ponder;    } else{return nil; }}

Uiviewcontroller *VC = [[Uiviewcontroller alloc] init];

[[Self FUNRESPONDERVC] PRESENTVIEWCONTROLLER:VC animated:yes Completion:nil];

This realizes the UIView jump, in fact can be written in Uiviewcontroller, do not need to be so troublesome, but considering the code encapsulation and code later changes, so encountered in the UIView jump is essential.

This article is from the "snowflakes flying over the World" blog, please be sure to keep this source http://smengxiang.blog.51cto.com/11204872/1871740

Jump for IOS UIView

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.