iphone - How would you achieve a LED Scrolling effect? -


how achieve led scrolling effect example below?

led sign - led ticker emulator iphone , ipad http://img.skitch.com/20101201-rsfh4p1bajb1wp94k466pdpiuj.preview.jpg

sometimes remunerates comment in other posts :)

have put code you, should implement font '8pin matrix' 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 "…"     label.text = @"this led text scrolled               "; // blanks 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]]; } 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -