i want to use uitableview just like a uipickerview. on click a button the uitableview comes.and on clicking any cell the selected value will be shown on the button on previous page
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.
The normal way to pass data back to another controller is to use a
delegateprotocol. The controller with the button would implement the protocol method(s) declared in an@protocoldeclaration put in the .h file of the table view controller. In thetableView:didSelectRowAtIndexPath:method, you would call the delegate method, passing the value of the clicked on cell.