Dynamically change the textview.keyboardType using segment control

Posted by Madan Mohan on Stack Overflow See other posts from Stack Overflow or by Madan Mohan
Published on 2010-01-13T09:44:59Z Indexed on 2010/06/16 19:12 UTC
Read the original article Hit count: 179

Filed under:
-(void)segmentAction
{
  if(segmentedControl.selectedSegmentIndex == 0)
  {
      textview.keyboardType = UIKeyboardTypeNumberPad;
  }
  else
  {
      textview.keyboardType = UIKeyboardTypeDefault;
  }
}

© Stack Overflow or respective owner

Related posts about objective-c