viewWithTag()
?Suggested approach: The only real pro is that it’s an easy fix to finding a view, used particularly when you don’t want to bother creating a custom table view cell class. However, it’s obviously flaky because the tag number might change in the future, and it’s never nice having magic numbers in your code. Use with care!
Estimated difficulty: Easy
See the full list of iOS interview questions
Link copied to your pasteboard.