-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange visual bug #16
Comments
Are you running latest commit? Or version 1.1.0 via cocoa pods. I don't really understand what you're doing, you're presenting an av/as as you enter background? Won't that be shown after you come back in foreground, behind the lock? |
Well I click on a button and it presents an UIActionSheet. With the UIActionSheet being presented I press the homebutton. After returning to the app the lockscreen in my app is being displayed like this |
Oh, I understand. Already working on a fix, will come back when I have a (elegant) solution, since the current one is a bit choppy. |
Thanks a lot, that was really quick of you! |
I just noticed (though obvious) it affects my app too, so thank you :) |
Oh this is a tough one. AV and AS are presented in their own separate Any ideas? :( Edit: moving the logic from Update: tried moving it to |
Oh I see.. Well I tried all these things too and the only acceptable solution is dismissing the AV or AS when entering the background. But it's neither a good nor easy solution. Perhaps someone on stackoverflow.com can help us? |
Yeah, I thought about dismissing the AV/AS too, but indeed it's not an elegant solution either. Nonetheless, it's the best unless we find something better. I will post a question on stackoverflow shortly. Edit: there's another problem with this scenario: when coming back to foreground, even if positioned correctly (this part I fixed, wasn't hard) the lock screen covers the whole window, including the status bar, since AV/AS' |
http://stackoverflow.com/questions/18702565/find-uialertview-without-having-reference-to-it-ios-7 look here. It's really annoying how apple treats UIAlertViews now! |
Wonder how inconvenient adding a This comment was funny and sad: |
It will be inconvenient but still a lot better than nothing... And it's not very difficult to do for a developer either. Yeah I read that too, quite sad haha :( |
Those answer say AV/AS aren't added to any window, but if you |
Wouldn't apple reject an app that is accessing the private window? What do you plan to do now? It would be great if you could hide the _UIModalItemHostingWindow until the user has entered the passcode und display it afterwards. But that's probably impossible |
That would be indeed a good approach for the user, but it's still accessing a private method. I don't have any important bugs to solve, I might try it, just to see if it gets approved. As for the AV/AS not being added to any |
Ok that would be great! It's quite a strange behavior because there should be an option to present something above everything else |
Well, you can, as I explained above. I can add the lock screen on top of this Inside
And the funny part? The lock screen is displayed properly, it appears as it should on the multitasking view, the AV/AS window gets hidden, and then it is displayed again automatically as if the AV/AS was called right then (with the zooming in/popping animation, the background darkening and all!), without me doing anything. dafuq? Is Apple testing if the Edit: and to make things weirder, calling |
I just tried it out... REALLY strange and it is actually something I experienced myself earlier and wondered if I did something wrong. No matter what I do, the AVs seem to return :/ |
I tried manually making I'll go ahead and write that SO question now :) |
Well okay hopefully someone comes up with an idea... Please post the link to the question when you're finished with writing :) |
http://stackoverflow.com/questions/19816142/uialertviews-uiactionsheets-keywindow-and-me Suggestions on how to improve the question are welcome. |
were you able to solve the problem? |
Well, part of, which is found in the latest commit: the positioning is correct, but any av/as present before going to background/displaying the lock screen will appear on top when coming back to foreground. It was the best compromise I could find; in case you read the SO question, you saw the difficulties I encountered with the UIWindow and the keyboard. |
yeah I read it but wondered if you found out anything new. That's totally okay, thanks :) |
When presenting a UIAlertView/UIActionSheet before applicationDidEnterBackground I get this strange visual bug after returning back into the app.
The text was updated successfully, but these errors were encountered: