receiver type *** for instance message is a forward declaration

That basically means that you need to import the .h file containing the declaration of States.

However, there is a lot of other stuff wrong with your code.

  • You’re -init’ing an object without +alloc‘ing it. That won’t work
  • You’re declaring an object as a non-pointer type, that won’t work either
  • You’re not calling [super init] in -init.
  • You’ve declared the class using @class in the header, but never imported the class.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)