ios - Neither keyboard nor cursor are appearing when a UITextField is tapped -
I'm testing a simple application on Xcode 5.0.2 Using the I storyboard, I have two visual controllers Which is connected by segments. First there is a button on the View Controller, after pressing the button shows the next controller which has two text fields. When I tap textfile, the keyboard is not visible and the text cursor is unavailable.
textFieldViewController.h file textFieldViewController.m file Screenshot Make sure your
@property (weak, notatomic) IBotlet UIFIFFField = NamedField; @property (weak, nonetomatic) ibotatlet uitfestfield * number field; - (IBAction) textFieldDoneEditing: (ID) sender; - (IBAction) PageImage: (ID) sender;
- (IBAction) textFieldDoneEditing: (ID) sender {[Sender resigns FirstResponder]; } - (IBAction) PageImage: (ID) sender {[self. NameField Resignation First Responder]; [Self. Numberfield's Resignation First Responder]; }
UserInteraction is
UITextfield is
enabled < / Code> and you did not have any views on your textfield.
Comments
Post a Comment