-4

Following is my Model.h file:

@interface Model : NSObject
    - (void)loadSiteForTTSWithText:(NSString *)text AndVerseNumber:(int)versesNumber AndChapterNumber:(int)chapterNumber AndBookNumber:(int)bookNumber;
.... //few other methods are here
@end

I have imported Model.h into my ViewController and made an object for Model namely model. And then i access the methods in Model using model. All other methods are working just fine, but when I try to access:

[model loadSiteForTTSWithText:stringToRead AndVerseNumber:verseNumber AndChapterNumber:chapterNumber AndBookNumber:bookNumber];

I am getting the error:

No visible @interface for 'Model' declares the selector 'loadSiteForTTSWithText:AndVerseNumber:AndChapterNumber:AndBookNumber:'

I am not getting any errors on the other methods declared inside Model.h. What can be the issue?

EDIT
I have checked for duplicate files but couldn't find any.

Harikrishnan
  • 7,765
  • 13
  • 62
  • 113

2 Answers2

3

I don't know what the error was but exiting Xcode and reopening it solved the issue.

Harikrishnan
  • 7,765
  • 13
  • 62
  • 113
0

The method declaration might be wrong.just create a proper syntactical method declaration if you missed the syntax in middle it will give message like that.check your method decalration protocol.It seems mistake is there in that..

NHS
  • 409
  • 2
  • 7