Removed failing __bridge cast.
Fixed missing replacement of kCTForegroundColorAttributeName with NSForegroundColorAttributeName.
Replaced (NSString *)kCTForegroundColorAttributeName with NSForegroundColorAttributeName and similar to be compatible with iOS 8.