I just created a custom UITextView in which allows to insert placeholders. (Referring from Placeholder in UITextView)
However, when you use this custom UITextView, you cannot make a flashing background effect of it. * Flashing animation codes below
- (void)startFlashAnimation: (UITextView *)textView
{
[UIView animateWithDuration:3.0
delay:0.0f
options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse
animations:^{
NSLog(@"Animation start");
//NSLog(@"Color %@", [_flashColorsArr description]);
NSArray *arr = @[[UIColor orangeColor], [UIColor blueColor], [UIColor greenColor]];
for (UIColor *color in arr) {
NSLog(@"color %@", color);
textView.backgroundColor = color;
}
}
completion:^(BOOL finished){
NSLog(@"Finished the animation!");
}];
}
That would be really appreciate if you make a flash animation effect in this custom UITextView.
Cheers,