IOS Change Navigationcontroller pop out of view Back button

Source: Internet
Author: User
Tags response code

In the case of navigation controller, when a pop view comes out, the return key defaults to the title of the return arrow and Source view. If there is no problem, it is an English back. So what do you do if you want to modify the return button?

First drag a Bar button item to the top left. This replaces the default button. There is no response at this time. The response code needs to be added at this point.

[[Self Navigationcontroller] popviewcontrolleranimated:yes];

This is the way it's done. This way, you can implement a custom return button.

Close View Code is also attached

[Self dismissviewcontrolleranimated:no completion:nil];


This article is from the "zhuoking" blog, make sure to keep this source http://9951038.blog.51cto.com/9941038/1772529

IOS Change Navigationcontroller pop out of view Back button

Related Article

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.