Iam creating a table when the user clicks on one button like dropdown list.I have text fields and textvies are there on the same view ,i want to hide that table view when the user touches on any where in the view or any textfields or textviews.please help me any one knows
Share
To detect if the user clicked on the view you should use the
touchesBeganmethod.To detect if the user clicked inside a
UITextFieldyou should declare your view as the delegate and implement the methodFor UITextView, you should implement
In these methods you simply hide your tableview.