0
很奇怪,我試圖調用從與以下錯誤失敗的類中的方法:爲「BlahDataController」不可見@interface聲明選擇「amethod方法:
/用戶/陽光/桌面/ iphone/ViewController.m:64:19:'SocketIOSignaling'沒有可見的@interface聲明選擇器'RoomNow'
但是,當我從相同類別的其他方法調用相同類型的其他方法只是使用不同的名稱。
任何人都可以請指教?
1)SocketIOSignaling.h:
...
- (void)SameRoomNow; // <<< this works
- (void)RoomNow; //<<< this is not working???
...
2)SocketIOSignaling.m:
...
- (void)SameRoomNow { // << this is working
...
}
- (void)RoomNow { // << this is not working???
...
}
...
3)ViewController.m:(問題是這裏在調用RoomNow)
#import "SocketIOSignaling.h"
@property (strong, nonatomic) SocketIOSignaling* yumyumyum;
- (void)buttonPressed:(UITapGestureRecognizer *)gestureRecognizer{
NSLog(@"OK OK OK Tapped");
self.yumyumyum = [[SocketIOSignaling alloc] initWith:YES];
[self.yumyumyum SameRoomNow]; // This is WORKING
[self.yumyumyum RoomNow]; // But - This is NOT NOT NOT working
}
您是否嘗試過平常 - 乾淨,整潔build文件夾,乾淨得出的數據,重建? – Losiowaty
@YumYumYum你可以分享整個'SocketIOSignaling.h'文件嗎? – ystack
@YumYumYum在'buttonPressed:'方法中''SocketIOSignaling'沒有方法,它只是'initWith:'方法,實際的方法是'initWithVideo:'嘗試清理它,看看問題是否消失 – Vasanth