I am trying to figure out a way to update labels size with dynamic type in storeResultCell.
I did the constraints for storeResultCell and implemented notification method in app delegate like so :
let UIContentSizeCategoryDidChangeNotification = "UIContentSizeCategoryDidChangeNotification"
func didChangeSizeCategory() {
NSNotificationCenter.defaultCenter().addObserverForName(UIContentSizeCategoryDidChangeNotification, object: nil, queue: NSOperationQueue.mainQueue(), usingBlock: {_ in
print("Did receive notification")
NSNotificationCenter.defaultCenter().postNotificationName(updateTableViewNotification, object: self)
})
Next I implemented didChangeSizeCategory() method inside applicationDidBecomeActive.
Than I added a method to searchViewController to listen to notification, and this piece of code to the closure:
self.tableView.ReloadData()
Now when I return after enabling bigger text size some cells have resized labels and some don’t. Now I can’t figure out how to refresh whole table view.