I added one text field in storyboard and link it with header file.
Now when I run the application I get the error like
[InputViewController _keyboard]: unrecognized selector sent to instance
@property (strong, nonatomic) IBOutlet UITextField *countryCode;
NSString *body = [NSString stringWithFormat:@"country=%@", self.countryCode.text];
The problem is with your name:
@property (strong, nonatomic) InputViewController *inputViewController;
Apple has added a property with similar name in UIResponder class:
@property (nonatomic, readonly, retain) UIInputViewController *inputViewController NS_AVAILABLE_IOS(8_0);
This is what happens:
UIInputViewControlleron your InputViewController's instance.
keyboardmethod does not exist on your InputViewController because it is not an instance of
Change the name of that property and you should be fine.
Also Read, Apple's documentation on UIInputViewController.