Skip to content
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

MarqueeLabel won't scroll when it is used on UIWindow #279

Open
xiongcai opened this issue Dec 14, 2021 · 1 comment
Open

MarqueeLabel won't scroll when it is used on UIWindow #279

xiongcai opened this issue Dec 14, 2021 · 1 comment

Comments

@xiongcai
Copy link

Usage Details

  • Language:
  • Platform:
  • iOS Version:

Expected Behavior

Actual Behavior

Steps to Reproduce the Problem

  1. when MarqueeLabel is added to UIWindow, function labelReadyForScroll return NO.
  2. When UIViewController *viewController = [self firstAvailableViewController]; viewController is nil,
  3. MarqueeLabel won't scroll
@cbpowell
Copy link
Owner

Hi! So that is expected behavior as you can see on this line of code, although I don’t completely remember why it’s necessary - and it may not be anymore.

As best I remember, I thought it didn’t make sense to fire the animations if the label isn’t attached to a view controller. However if you have a use case where it works just fine, I’m totally open to supporting it!

If you disable those few lines of codes, does MarqueeLabel work fine in your project?

Repository owner deleted a comment from slmMuc2fly Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants