Your code crashing because you used [wordModel.word containsString:tappedSentence]
containsString is available in iOS 8 and later. If you want use both iOS 7 and iOS 8 + then please use below code -
Implement containsString yourself in a category using rangeOfString:
@implementation NSString (Contains)
- (BOOL)myContainsString:(NSString*)other {
NSRange range = [self rangeOfString:other];
return range.length != 0;
}
Hope this will help you.