UILabel文字发光和选框

我使用它来滚动uilabel文本, 这用于发光效果。 但是我想要发光和选框uilabel文本,我已经从上面的代码用RSSGlowLabelclass替换了UILabel。 但我没有得到发光效果。 谁能告诉我怎样才能实现这一点。

如果你自己编写它可能会容易得多。 从这开始:

float alph = 0.7; - (void)viewDidLoad { [super viewDidLoad]; glowLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 100)]; NSString *string = @"some text"; glowLabel.text = string; glowLabel.textColor = [UIColor blueColor]; [self.view addSubview:glowLabel]; glowLabel.alpha = alph; [NSTimer scheduledTimerWithTimeInterval:0.4 target:self selector:@selector(glowMarquee) userInfo:nil repeats:YES]; } -(void)glowMarquee { alph = (alph == 1) ? 0.7 : 1; // Switch value of alph [UIView beginAnimations:@"alpha" context:NULL]; [UIView setAnimationDuration:0.4]; glowLabel.alpha = alph; [UIView commitAnimations]; } 

现在只需将选取框逻辑添加到glowMarquee方法,或者为选取框创建单独的方法,并为控制它创建另一个计时器,这样就可以独立控制这两个方法。