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

How to pause text for some time #33

Closed
shahhardik222 opened this issue Apr 2, 2014 · 2 comments
Closed

How to pause text for some time #33

shahhardik222 opened this issue Apr 2, 2014 · 2 comments

Comments

@shahhardik222
Copy link

Hi

I need to pause the text for a while, this functionality is available in
https://github.com/cbpowell/MarqueeLabel

but i can not find it here so please let me know how it is possible to pause the scrolling. If i set the scrollSpeed=0 then the content shift to initial position.

Thanks
Hardik Shah

@cbess
Copy link
Owner

cbess commented Apr 3, 2014

There is no "pause" operation for the scrolling. It may be a nice feature, please provide a pull request.

@cbess cbess closed this as completed Apr 3, 2014
@shahhardik222
Copy link
Author

Hi I found it how to pause text,

-(void)pauseRunning
{
CFTimeInterval pausedTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
self.layer.speed = 0.0;
self.layer.timeOffset = pausedTime;
}

This would works great for me.

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