In my app I have a table view, which displays a set of data, and a button. What I want is that, when I click on the button, the table view moves to a new position and also displays a new set of data.
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.
If by “i want my table view to move to a new position” you mean you wish to scroll the tableView to a specific place, then use
to scroll the tableView.
If by “i want my table view to move to a new position” you mean you wish to move the tableView to a different location within the superview, then use
to set the center to any
CGPointyou like.If by “i want my table view to move to a new position” you mean you wish to move the tableView to a different location within the superview and change it’s size, then use
to set the frame to any
CGRectyou like.If by “i want my table view to move to a new position” you mean something else entirely, then perhaps you should update your question to be more specific.
To change the data, set the data to an array and simply change the contents of the array.