If you want to hide it completely:
abc.hidden = YES;
If you just want to prevent user interaction:
abc.userInteractionEnabled = NO;
Since UITextField is a subclass of UIView (and UIControl), all methods of UIView (and UIControl) (for example, those that I used above) are available.
source share