You can put your label inside a custom subclass of UITableViewHeaderFooterView which does it automatically for you,
Apologies, I only know Swift, but here are the steps explained:
Basically, create a custom subclass of UITableViewHeaderFooterView (in code or using nib), configure and add your label as a subview to the header’s contentView, register the custom header to your tableview, and then call it in the delegate method
CLICK HERE to find out more related problems solutions.