I have a view that has several options, and inside it is a table view that gets data from a server.
Is there a way to have the table view automatically select the first option on load, i.e. in viewDidLoad?
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.
Try UITableView’s
selectRowAtIndexPath:animated:scrollPosition:method.If you want the delegate callback, you’ll have to call it manually:
You’d probably want to cache that index path in a local variable, then.