I have a button in a table view cell which, when pressed brings up a UIPickerView. The only problem that I’m facing is finding out how to access the main view from inside the cell. Any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could follow the parent view chain up until you reach the view that is a UITableView. However, I think the better approach is to place the picker in the table cell. The metaphors here is pressing the button causes the cell to enter edit mode, and a picker view is needed (in your case). The whole table view API has plenty of helper functions to make that happen.