I’m wondering how this:

could be done programmatically? Is it just setting the uitableview datasource and delegate to the FadingTableView class? What exactly is going on by setting the custom class in IB?
Thanks.
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.
Here you are telling IB that the table view instance is actually the instance of
FadingTableView.and if you want to create this table view programmatically then use these line
Why you set that class in IB is because the IB has inbuilt objects thus
UITableViewbut you want your table view which is not present in the IB thus you put your class name there so that it will create instace ofFadingTableViewinstead ofUITableView.And No it’s not used for connecting datasource or delegate.