TextField superimposed to tableview
source link: https://www.codesd.com/item/textfield-superimposed-to-tableview.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
TextField superimposed to tableview
I initially load a hidden tableView
with some data and show this when I press a button, simulating a drop down menu.
In the same view, I have a UIButton
which when pressed, programmatically creates another UIButton
and a UITextField
.
The problem is that when I load again, the tableView
and all the textField
s and button
s are superposed.
This is what happens:
My question is what can I do for keep the tableView
in front of in the view.
When you do -addSubview:
, the view is added as the top-most view.
Which is the reason why your newly added textField
s are appearing above your tableView
.
The quickest way to solve your issue would be to make the tableView
the top-most view when you're planning to show it.
Example:
[yourTableView setHidden:NO];
[self.view bringSubviewToFront:yourTableView];
Assuming that self.view
contains yourTableView
Related Articles
Why does not ScrollToRect work for a TextField in a Tableview, inside a ScrollView?
Access textfield.text for textfield inside a tableView cell
JavaFX - Tableview Filter from Textfield
How to view data from one tableview cell to another viewcontroller when you click that particular cell?
When I press the button, I want the contents of the text field to be added - IOS TableView
IPhone TableView does not contain JSON data
iOS: How to Access the UITextField Values That Are in a Custom Cell of Tableview
Reuse the same selection for different text fields in tableview
tableview as an intelligence in the iphone does not work
iOS 7 - Change the keyboard type of a textField in a custom uitableViewCell
JavaFX, why is TableColumn zero?
IOS debits with UITextField and UITableView
Obtain the UITextField array in UITableViewCell
When the UIPickerView value has changed, the row of the table has changed in ios
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK