本书229页,照样画葫芦都报错。求解!

归档.zip (9.5 KB)

Making all for tweak beiwanglu…
Preprocessing Tweak.xm…
Compiling Tweak.xm…
Tweak.xm:11:26: error: property ‘note’ cannot be found in forward class object
‘NotesDisplayCotroller’
NSString *content = self.note.contentAsPlainText;
~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller;
^
Tweak.xm:15:6: error: property ‘title’ cannot be found in forward class object
‘NotesDisplayCotroller’
self.title = contentLength;

Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:25:10: error: property 'title' cannot be found in forward class object
      'NotesDisplayCotroller'
    self.title = nil;
    ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:35:30: error: property 'contentLayer' cannot be found in forward class
      object 'NotesDisplayCotroller'
    NSString *content = self.contentLayer.textView.text;
                        ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:39:10: error: property 'title' cannot be found in forward class object
      'NotesDisplayCotroller'
    self.title = contentLength;
    ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
5 errors generated.
make[2]: *** [obj/Tweak.xm.1be11fe6.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [beiwanglu.all.tweak.variables] Error 2
qinghuideAir:beiwanglu qinghuiyang$ make package
Making all for tweak beiwanglu...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:11:26: error: property 'note' cannot be found in forward class object
      'NotesDisplayCotroller'
NSString *content = self.note.contentAsPlainText;
                    ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:15:6: error: property 'title' cannot be found in forward class object
      'NotesDisplayCotroller'
self.title = contentLength;
~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:25:10: error: property 'title' cannot be found in forward class object
      'NotesDisplayCotroller'
    self.title = nil;
    ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:35:30: error: property 'contentLayer' cannot be found in forward class
      object 'NotesDisplayCotroller'
    NSString *content = self.contentLayer.textView.text;
                        ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
Tweak.xm:39:10: error: property 'title' cannot be found in forward class object
      'NotesDisplayCotroller'
    self.title = contentLength;
    ~~~~ ^
Tweak.xm:5:8: note: forward declaration of class here
@class NotesDisplayCotroller; 
       ^
5 errors generated.
make[2]: *** [obj/Tweak.xm.1be11fe6.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [beiwanglu.all.tweak.variables] Error 2

解决了么

nites8.zip (42.9 KB)
这是我按照书上做的.自己拿去对比吧.