How would you achieve a LED Scrolling effect?

How would you achieve an LED Scrolling effect like the example below?

Answers


sometimes it remunerates to comment in other posts :)

Have put some code together for you, but you should implement the font '8Pin Matrix' to get realistic feeling.

UILabel *label;
- (void)viewDidLoad {
    [super viewDidLoad];

    label = [[UILabel alloc]initWithFrame:CGRectMake(10, 50, 300, 20)];
    label.font = [UIFont fontWithName:@"Courier-Bold" size:16.0];
    label.backgroundColor = [UIColor blackColor];
    label.textColor = [UIColor greenColor];
    label.lineBreakMode = UILineBreakModeCharacterWrap; // otherwise you would get "…"
    label.text = @"This LED Text will be scrolled               "; // some blanks to get space between
    [self.view addSubview:label];

    [NSTimer scheduledTimerWithTimeInterval:0.12f target:self 
                                   selector:@selector(scrollLabel) 
                                   userInfo:nil repeats:YES];

}

- (void)scrollLabel {
    label.text = [NSString stringWithFormat:@"%@%@", [label.text substringFromIndex:1], [label.text substringToIndex:1]];
}

Need Your Help

How can 1 catch the exceptions thrown by the executable run using Java code?

java

I have written a Java code that must run only after successful shutting down of weblogic server.

Plyplus gives syntax error because of specific keywords?

parsing python-3.x context-free-grammar ply python-plyplus

I am using plyplus to design a simple grammar and I have been struggling with some weird error for a while. Please bear in mind I am a newbie. Here is a piece of code that reproduces the issue:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.