I’m going to demonstrate on how I achieved the dynamic height for my UITableViewCell. Below is what it looks like. This is a UITableViewCell for comments. ImageView on the left side is for the user’s avatar, the top most UILabel is for the username and lastly at the bottom is the UILabel for comment. Yes […]
In programming, you always encounter duplicate code blocks. The best thing to do is to place it in a separate function so that we can reuse it throughout our source code.