I have a problem with my swift APP.
In my TableViewCell function i wrote
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath:indexPath) as MyCell
cell.setMyCell(self.data[0]["content"]!)
if i wrote
cell.textAlignment red line appear and say "textAlignment in unavailable: API deprecated"
The correct answer for people using Swift 4 would be:
cell.textLabel?.textAlignment = .center
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With