Giter Club home page Giter Club logo

Comments (5)

lincf0912 avatar lincf0912 commented on July 26, 2024

from lfimagepickercontroller.

lilangkit avatar lilangkit commented on July 26, 2024

再次拍摄后,列表就监听不到相册变化了呀,就显示不出来了呀,就虽然选中了,但是看不见。

from lfimagepickercontroller.

lincf0912 avatar lincf0912 commented on July 26, 2024

from lfimagepickercontroller.

lilangkit avatar lilangkit commented on July 26, 2024

LFImagePickerController(UINavigationController)上弹出的 UIAlertController 在销毁时也触发了 LFImagePickerController 的 dismissViewControllerAnimated:completion哦,彩蛋不。而且 dismiss 只是代表暂时不显示,不代表销毁了呀。

from lfimagepickercontroller.

lincf0912 avatar lincf0912 commented on July 26, 2024

久等了。暂时这样解决。

- (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion
{
    /**
     弹出的 UIAlertController 在销毁时也触发了 dismissViewControllerAnimated:completion
     防止弹出的Controller 调用 self.presentingViewController 来销毁,这里判断没有presentedViewController来解决。
     */
    if ([self presentedViewController] == nil) {
        for (UIViewController *childVC in self.childViewControllers) {
            if ([childVC respondsToSelector:@selector(viewDidDealloc)]) {
                [childVC performSelector:@selector(viewDidDealloc)];
            }
        }        
    }
    [super dismissViewControllerAnimated:flag completion:completion];
}

from lfimagepickercontroller.

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.