Giter Club home page Giter Club logo

Comments (15)

thuongdao avatar thuongdao commented on May 29, 2024 1

this is my code when launching the app

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        IQKeyboardManager.sharedManager().enable = true
        window = UIWindow(frame: UIScreen.main.bounds)
        if let _ = VAuthenManager.sharedInstance.getLogginUser(){
            let storyboard = UIStoryboard(name: "Main", bundle: nil)
            let vc = storyboard.instantiateViewController(withIdentifier: "RootMainViewController")
            window?.rootViewController = vc
            window?.makeKeyAndVisible()
        }else{
            let storyboard = UIStoryboard(name: "Authen", bundle: nil)
            let vc = storyboard.instantiateViewController(withIdentifier: "RootAuthenViewController")
            window?.rootViewController = vc
            window?.makeKeyAndVisible()
        }
        
        self.registPuhNotification(application)
        
        let strPush = UserDefaults.standard.object(forKey: PushManager.kDeviceTokenKey)
        
        //The code below Call GLAler here
        Util.showSuccess("Push: \(strPush)")

        return true
    }

I use simulator Iphone 7, ios 10.x

from lgalertview.

NikKovIos avatar NikKovIos commented on May 29, 2024

Do you use IQKeyboard?

from lgalertview.

Smeegol avatar Smeegol commented on May 29, 2024

No

from lgalertview.

pinchukvd avatar pinchukvd commented on May 29, 2024

Fixed this by changing code from :

[LGAlertView
     keyboardAnimateWithNotificationUserInfo:notification.userInfo
     animations:^(CGFloat keyboardHeight) {
         if ([notification.name isEqualToString:UIKeyboardWillShowNotification]) {
             self.keyboardHeight = keyboardHeight;
         }
         else {
             self.keyboardHeight = 0.0;
         }
           [self layoutValidateWithSize:self.view.frame.size];
     }];

to:

[LGAlertView
     keyboardAnimateWithNotificationUserInfo:notification.userInfo
     animations:^(CGFloat keyboardHeight) {
         if ([notification.name isEqualToString:UIKeyboardWillShowNotification]) {
             self.keyboardHeight = keyboardHeight;
           [self layoutValidateWithSize:self.view.frame.size];
         }
         else {
             self.keyboardHeight = 0.0;
         }
     }];

from lgalertview.

thuongdao avatar thuongdao commented on May 29, 2024

UITextfield should resign first responder before showing the alert

from lgalertview.

Friend-LGA avatar Friend-LGA commented on May 29, 2024

Can anybody create some demo for this issue and send it to me? I can't reproduce this bug.

from lgalertview.

pinchukvd avatar pinchukvd commented on May 29, 2024

LGAlertViewBugDemo.zip
Here

from lgalertview.

Friend-LGA avatar Friend-LGA commented on May 29, 2024

With new version 2.3.0 bug is fixed, check it out.

from lgalertview.

Friend-LGA avatar Friend-LGA commented on May 29, 2024

Feel free to open issue back, if it still reproduced with new version.

from lgalertview.

thuongdao avatar thuongdao commented on May 29, 2024

All of my application change to Black Screen when installing new version 2.3.0.
I have to back to version 2.2.0.
Please noted my comment, sorry for having no demo.

from lgalertview.

Friend-LGA avatar Friend-LGA commented on May 29, 2024

When black screen appears?
iOS version?
Simulator or device?
Do you have any custom UIWindow in you app?
Is it reproduced in demo or in fresh project?

from lgalertview.

Friend-LGA avatar Friend-LGA commented on May 29, 2024

No, I can't reproduce it. If you can create some simple demo project with this issue, then open new issue and I will try to fix it.

from lgalertview.

SuooL avatar SuooL commented on May 29, 2024

@thuongdao I have the same problem with you.. Have you solved it ?

from lgalertview.

thuongdao avatar thuongdao commented on May 29, 2024

@SuooL , I have to back to version 2.2.0,
dismiss all TextField and TextView before showing the alert

from lgalertview.

NikKovIos avatar NikKovIos commented on May 29, 2024

Try to use IQKeyboard with LGAlertView with TextField.

from lgalertview.

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.