0

i m using this in learncontroller.h

IBOutlet  UIView    *splashView;

and also

@property (nonatomic, retain) IBOutlet UIView *splashView;

and in .m on next button clik

[splashView setTag:1000];
[self.view addSubview:splashView];

So from here when i move to next view called view01 IT says

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<View01 0x56816c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key splashView.'
Vladimir
  • 170,431
  • 36
  • 387
  • 313
Jay
  • 1
  • 1
  • possible duplicate of [This class is not key value coding-compliant for the key](http://stackoverflow.com/questions/3088059/this-class-is-not-key-value-coding-compliant-for-the-key) – jtbandes Aug 01 '15 at 22:04

1 Answers1

0

Either you forgot to connect this in you nib file as it is declare as IBOutlet, Or you have done some mistake in copy pasting your code from one place to another (may be you forgot to copy .xib file with .h and .m file)

Mihir Mehta
  • 13,743
  • 3
  • 64
  • 88