我的TextField是不可编辑的 [英] My TextField is not editable
问题描述
我知道这是一个非常简单的问题,但是TextField是不可编辑的.
I know it is a very simple Question, but the TextField is not Editable.
我有三个UIView,每个UIView中包含三个TextField.第二个和第三个UIView中的TextFields可以正常工作.但是在第一个UIView的TextField中,确实很奇怪.
I have three UIViews, in each UIView contains three TextFields. The TextFields in the 2nd and 3rd UIView are working perfectly. But in the TextFields in the 1st UIView are really weird.
让TextField为First,Middle,Last Name.第一个TextField正常工作,Middle有时仅工作(这意味着我需要触摸几次),最后,Last Name TextField完全无法正常工作.
Let the TextFields are First, Middle , Last Name . First TextField is working fine, Middle is working only sometimes (it means i need to touch several times) and at last, the Last Name TextField is COMPLETELY not working.
可能是什么问题?
_bgScrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
_bgScrollView.clipsToBounds = YES;
_bgScrollView.scrollEnabled = YES;
_bgScrollView.pagingEnabled = NO;
[_bgScrollView addSubview:FirstView];
[_bgScrollView addSubview:SecondView];
[_bgScrollView addSubview:ThirdView];
[self layoutSubViews];
_bgScrollView is scrollView Object
推荐答案
您是否已将它与XIB连接并委托它?您是否已实现此功能?
have you connected it with XIB and also delegate it ?Also have you implemented this function?
- (BOOL) textFieldShouldBeginEditing:(UITextField *)textField {
return [self isEditing];
}
这篇关于我的TextField是不可编辑的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!