-
Notifications
You must be signed in to change notification settings - Fork 65
Library doesn't seem to be working as it should #9
Comments
im running iOS 8 in an app that takes advantage auto layout and storyboards |
I have tested this pod with Xcode 6.1.1, iOS 8 and AutoLayout and I am getting no issues. Can you provide an example? |
Ya when I get a chance today ill share a link to some sample code. |
Changed my issue to something more appropriate * |
Ok so I am starting to think that I might have just jumped the gun trying to bridge your project into my swift project. But here is the basics, I put this sample in my viewDidLoad *********************** BEGINNING OF CODE SNIPPET ***************** MMPopLabel.appearance().labelColor = UIColor.blueColor() popLabel = MMPopLabel(text: "Some Text") let skipButton = UIButton(frame: CGRectZero) self.view.addSubview(popLabel) *********************** END OF CODE SNIPPET ***************** My AvatarImageView is sitting in the dead center of the screen. And the popLabel appears where my leftBarButtonItem is. Is there something I am missing? |
Even if I put the code to viewDidLayoutSubviews (aka after AutoLayout has done is calculations for frames) it still does not pop at the right place. |
Do you think its just a Swift compatibility issue? |
I'm definitely having a similar problem (swift project, XCode-6.1.1), but I haven't had time to delve into it too deeply. The popup label is defined like this:
My view hierarchy is:
Everything except for the passwordErrorLabel is setup via the storyboard, using AutoLayout. Then in viewDidLoad():
If the user's pw doesn't meet the password policy criteria, I call (from within
The screen looks like this: Does it have anyhthing to do with the passwordTextField not being in the root hierarchy directly or in a scrollview? |
It's something with the first part of popAtView():
If I comment this out, it works properly. |
@SuperTango I can confirm the exact same behavior. Xcode 6.3 - Objective C
The view hierarchy is
Could it be that all of the transition views automatically created by AutoLayout are creating difficulties for this test? Commenting out the same section of code works for me. |
@SuperTango Confirmed. It took me a bit to figure this out, should have checked the open issues, but removing this fixed the positioning problems on the iPad. |
I'm having the same issue. How can I fix it. The view is controlled by autolayout. |
For a quick fix, try changing the following code in MMPopLabel.m, line 204:
with this:
This should solve your problem. I'll be updating the pod ASAP with this change. |
I'll check if the workaround works and let you know. My PopLabel doesn't have any buttons. Just text. I don't think It takes many many many taps and it's totally predictable on when it does dismiss. |
Here is a fix: Inside : add: Inside : add:
|
Could you please add those in and then the class should be all good. |
We have the same problem with the position of the label.. but your workaround does not work :( |
SAME PROBLEM :( |
The fix from "mgcm" coment worked for me!!! I'm having a issue to change the text to display multiples tips. I didnt find any text property. Anyone give me a hint? |
CASE CLOSED: This guy's fork solves the problem: https://github.com/kouheiszk/MMPopLabel
|
Basically your popAtView function doesn't pop at the right place.
The text was updated successfully, but these errors were encountered: