-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
iOS 8 layout wrong #74
Comments
bump |
I got the same problem |
Ya, Im going to have to use another library soon if this is not fixed in a day or 2, I need to submit this app ASAP |
Which one are you going to use? |
Exactly the same problem |
Yes, it's the autolayout, but I have no idea why it's not working anymore; it makes no sense, or I'm missing something really obvious. If visual constraints are used, it works, but visual representation isn't enough for what's needed. Feel free to have a look, it might make some people happy, if solved :) |
Layout is fine on an iPad in iOS 8, it's just the phone view that's wrong. |
Yes, fixing this for iPhone would make some people verrrry happy :) |
I've started working on this. In the auto layout code, around line 500 in the LTHPasscodeViewController, creating the constraint against the animating view for all the items makes the layout correct, e.g. for the passcode, but this is needed for all of them. NSLayoutConstraint *enterPasscodeConstraintCenterX = I need to understand in more detail how this works before claiming any success if fixing it, but if anyone else is looking at the problem, this may be the area to focus on. |
Changing the I now need to fix another bug with the keyboard not appearing on iOS 7 and I will push the changes and update the pod. Today, hopefully. |
I don't have an iPad to test, nor an iOS 7 iPhone and the simulator is acting stupid regarding |
I will test on an iPad running iOS 7, an iPhone 4 running iOS7 and and an iPhone 5 running iOS8 and let you know if there's any issues |
Awesome, thanks! |
My implementation of the _animatingView change is working on all my devices. I'll test your new code once it's pushed here. |
The code was pushed, but found another bug, so I will push again in a few mins. Tested it on iPhone iOS 7 and 8 and it everything works. |
That looks good to me for portrait on all devices. On the iPad, in landscape it's not centred, and the error message appears under the keyboard. Just looking at the code now, but is this related to this issue or should I open a new issue? |
I can't really test on the iPad, the simulator acts really weird and I don't have a device :( If you (or anyone else) want to look at it and try a fix, I'd be grateful. |
It looks great on the iPhone! Thanks for fixing! |
Anyone having any luck with this? |
It's very hard to fix. Because the UIView is added to the top window, it doesn't receive rotate events. So the library applies a rotate transform to the view which rotates it 90 degrees, but this doesn't help with layout. I've had to switch to my own simpler lock screen - where I apply a neutral image view on the app going into the background, and then present a lock view controller on the app coming to the front. |
Any update on this? If you rotate the iPad while the enter passcode screen is visible the layout doesn't work fine. Tested on iPad with iOS 8.0.2 |
I'm also looking for a quick fix to the iPad layout problem after rotation. I don't really understand the layout code sorry, I tend to use .xib's for all my auto layout stuff. |
Anyone found a fix for this? |
change the constraints that relate to self.view to _animatingView would fix the layout, this may be because the self.view is not the direct container of the views we create, but _animatingView is.(iOS 8 bug?) |
any status on a fix for this? |
Please try 3.2.1 and let me know if it works. Worked on my machine, but I could use some confirmations. Thanks! |
Seems to work fine on the iPad simulator :) Thank you. |
Sounds good. I could use a couple of more confirmations, preferably on a device and/or real app before I close this. Cheers! |
Hey, thanks a lot for this great lib! I currently have the problem on iPhone 6 that the content view is completely blank, only the nav bar and keyboard render correctly, so for instance "Enter your passcode" and the dashed line aren't displayed. However, on the iPhone 6 simulator everything is fine. |
It works on my iPhone 6. |
@rolandleth This is really strange. In your demo project it always works but in my app it only works after the second launch, not at the first run. I am looking further into it and trying to figure out why. In a table view controller on a navigation controller stack I call this: [[LTHPasscodeViewController sharedUser] showForEnablingPasscodeInViewController:self asModal:YES]; |
If you unlock the device in landscape mode, you will see correct layout now on iOS8. iOS 8.1, iPhone 5s |
@alexsorokoletov same here. Layout is correctly loaded and displayed in the App orientation, but rotation breaks it. To me it looks like layout is calculated for current orientation, but it is not being recalculated when rotation happens. PD: There is a readme where it is said that for iPhone's only portrait is supported. However, it still rotates and presents in Landscape in my iPhone 5S with iOS8. |
In case you're interested: I have fixed the bug that I had, although I am still not sure why it occurred. I only know that any call I made to |
The rotation act abnormally because the status bar orientation observers are removed in To fix this, the only thing we have to do is, move the "addObserver" code which related to status bar orientation from the Hope this could help u. |
Added the code in the latest version, thanks! Do you think I can close this, or does it require further testing? I didn't have anything else besides an iPhone 6 to test it on. |
well, there still exists some problems in rotation methods. In some cases, the desiredOrientation didn't return the correct orientation. It isn't a big problem, but it actually exists.(for example, rotate after clicking the cancel). |
Fixed in |
Hi,I have got to views A and B. I'm getting problem with my iPad version of a "change passcode" view, which is B. The first time I am going from A to B the layout is shown correctly, just as I expect. Than I press back button which brings me to view A and I rotate the iPad. After going again to the view B ("change passcode" view) I get the blank screen. Applying |
Hey, Can you reproduce the bug in the demo app? If yes, can you provide a sample project based on the demo app(preferred)/steps to reproduce, please? Would be easier to track down the issue. Maybe |
Hi again, yes, I did test the demo app and it gives the same result like in my app. |
Hey, OK, can you provide a sample project based on the demo app, so I can try and debug it, please? Preferably a GitHub repo/fork with a new branch. Thanks! |
I guess you just use the demo project. and run it on the iPad , could also be a simulator (i get the bug on both).
|
Thanks! Will investigate today, hopefully. |
Hey, Added a fix in the latest commit, could you please have a look? Looks fine on my end, but I'd rather have another confirmation. Thanks! |
Hey thank you very very much! Works perfectly now. I tested only on the demo app from you, on simulator and an actual device. Could it be your commit is there but it is not tagged? I run 'pod update' but no changes come from github. Can you add it to the next stable release such that it updates using Podfile. |
I didn't update the pod just yet, I wanted to make sure everything is OK first. I will updated it later today. Thanks for confirming! |
@rolandleth hi, did you have a chance to update the pod? |
Done. |
awesome, thank you very much again! |
On iOS 8 the passcode bubbles appear in the top left. Probably changes in auto layout or something messed it up.
The text was updated successfully, but these errors were encountered: