Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNikolay Batrakov
9,604 PointsTableView reload with new data
I've created a simple app., which get CLBeacon instance from iBeacon device (my second iphone) convert the data to NSStrings and input the result to the TableView made as mentioned it Build a Blog Reader iPhone App project. At the end I realised that I have to call reloadData on my TableView to refresh it when I didRangeBeacons which seems weird a bit (UITableView class reference means that it calls reloadData when we assign new data source, does it mean that we have to assign a new DataSource protocol to refresh a table automatically?). The issue made me think about a broader question. I thought that it can be helpful to explain in plain English how does controller handle all these calls, what is the order of handling and so on. I think I understand the principes but all that nitty-gritty you see... the TableView doesn't want to refresh itself every time we change a cell value but Label does... What are the best code practices to settle all that stuff? And does that question stuped enough to just tell me RTFM? :)