что не так с этим кодом...
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(MySubViewNotification:) name:@"MySubViewNotification" object:nil];
-(void)MySubViewNotification:(UILabel*)GenericLabel
{
GenericLabel.textColor = [UIColor whiteColor]; ---- Error ----
GenericLabel.text = @"cwxcwxc"; ---- Error ----
NSLog(@"%@", GenericLabel);
}
NSLog.
NSConcreteNotification 0x1759c6c0 {name = MySubViewNotification; object = <UILabel: 0x175aace0; frame = (175 5; 62 15); text = '1.35'; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <CALayer: 0x175aad80>>}
Errror
-[NSConcreteNotification setText:]: unrecognized selector sent to instance 0x165a4270
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteNotification setText:]: unrecognized selector sent to instance 0x165a4270'