Giter Site home page Giter Site logo

工程中使用RTRootNavigationController后,在controller中重写- (BOOL)canBecomeFirstResponder 无法调用 about rtrootnavigationcontroller HOT 7 CLOSED

rickytan avatar rickytan commented on May 18, 2024
工程中使用RTRootNavigationController后,在controller中重写- (BOOL)canBecomeFirstResponder 无法调用

from rtrootnavigationcontroller.

Comments (7)

maqihan avatar maqihan commented on May 18, 2024

我查到 问题出在这里 屏蔽这段话 走系统的push就没事

- (void)pushViewController:(UIViewController *)viewController
                  animated:(BOOL)animated
{
    if (self.viewControllers.count > 0) {
        UIViewController *currentLast = RTSafeUnwrapViewController(self.viewControllers.lastObject);
        [super pushViewController:RTSafeWrapViewController(viewController,
                                                           viewController.rt_navigationBarClass,
                                                           self.useSystemBackBarButtonItem,
                                                           currentLast.navigationItem.backBarButtonItem,
                                                           currentLast.title)
                         animated:animated];
    }
    else {
        [super pushViewController:RTSafeWrapViewController(viewController, viewController.rt_navigationBarClass)
                         animated:animated];
    }
}

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 18, 2024

什么情况下会用 VC 的 - (BOOL)becomeFirstResponder

from rtrootnavigationcontroller.

xiaoyangh avatar xiaoyangh commented on May 18, 2024

同问,这个问题如何解决?一般的IM软件都会用到这个方法

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 18, 2024

你是怎么调用的?@xiaoyangh 预期效果是什么?

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 18, 2024

帮忙试下这个分支 issue42 有没有解决你的问题?

from rtrootnavigationcontroller.

PatShen avatar PatShen commented on May 18, 2024

我用融云的SDK验证过,issue42解决了这个问题。

from rtrootnavigationcontroller.

ivarwei avatar ivarwei commented on May 18, 2024

遇到了同样的问题,issue42解决了这个问题

from rtrootnavigationcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.