MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue
MIT License
117 stars 36 forks source link

Tableview and collection view not updated when language changed #42

Closed SherifKamalSalem closed 3 years ago

SherifKamalSalem commented 4 years ago

I have view controller with tableview and collectionview included so in cellForItemfor indexpath I grabbed out the item and use property observer to fill in cell components

var store: Store? { didSet { storeNameLbl.text = store?.name.localized if let url = store?.logoURL { storeImage.contentMode = .scaleAspectFill storeImage.sd_imageIndicator = SDWebImageActivityIndicator.grayLarge storeImage.sd_imageIndicator?.startAnimatingIndicator() storeImage.sdsetImage(with: url) } } } in func tableView( tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { cell.store = self.stores[indexPath.row] }

so all things changes correctly except tableview cells labels and collectionview labels

MoathOthman commented 4 years ago

is the label tag < 0 ?

SherifKamalSalem commented 4 years ago

no

abdullahayyad commented 4 years ago

when using storyboard localize it should work but in xCode11.1 have bugs in static table view cell well not localized see https://developer.apple.com/documentation/xcode_release_notes/xcode_11_1_release_notes/

to fix issue you must handle it manual