Guest User

Untitled

a guest
Jan 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath:indexPath) as MyCell
  2. cell.setMyCell(self.data[0]["content"]!)
  3.  
  4. cell.textAlignment red line appear and say "textAlignment in unavailable: API deprecated"
  5.  
  6. cell.textLabel?.textAlignment = .center
  7.  
  8. MyLabel1.textAlignment = NSTextAlignment.Center
  9.  
  10. label.textAlignment = .Center
Add Comment
Please, Sign In to add comment