用的textfield、创建一个继承UITextField的view然后在.m里面写上- (BOOL)canPerformAction:(SEL)action withSender:(id)sender{return NO;}就行了