My Notification Center widget contains a UITableView
and there is a UILabel
on the UITableViewCell
that I would like to 'blur'/ apply the UIVibrancyEffect
to. Here is what I have tried but It seems to be causing an exception:
UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:[UIVibrancyEffect notificationCenterVibrancyEffect]];
effectView.frame = cell.longStatusLabel.bounds;
__strong UILabel *longStatus = cell.longStatusLabel;
cell.longStatusLabel = effectView;
[effectView.contentView addSubview:longStatus];
[cell addSubview:effectView];
When I run this code my Notification Center Extension says it cannot load.