You've implemented this method
- (NSString*)lookup:(NSString*)in get:(int)dictio get1:(int)diction;
...but it looks like you're trying to call this method (that has been defined in your interface)
- (NSString*)lookup:(NSString*)in;
Because the implementation of lookup:
doesn't exist, you're getting an exception thrown. You need to either:
- Declare
lookup:get:get1:
in your interface, and call that intextFieldShouldReturn:
instead oflookup:
- Implement
lookup:
in your implementation
It all boils down to you calling a method that doesn't exist. Clarification on method naming in Objective C can be found here: Method Syntax in Objective C