i detect change in uitextfield , when ever there change in uitextfield call method provide me code showing how that.
thanks, tc
the uitextfield calls method on delegate when user has entered new text:
- (bool)textfield:(uitextfield *)textfield shouldchangecharactersinrange:(nsrange)range replacementstring:(nsstring *)string
here's reference methods uitextfield can call on delegate.
you can return no method if don't want allow change. can set delegate of uitextcontrol this:
mytextfield.delegate = myobjthatisthedelegateforthistextfield;
it may setup in xib file, though.
edit
to connect uitextfield if you're using interfacebuilder, right-click on uitextfield in window , drag line cube represents view controller (probably third cube in myview.xib?) select delegate popup appears.
Comments
Post a Comment