UITableView 기본을 사용하여 텍스트를 표시하니 긴글 일 때 잘리는 현상이..


해당 현상을 수정 해보고자 찾아봄...


물론 이 코드 말고도 좋은 코드는 많을 수 있음 -ㅅ-

난 모르니까 일단 이 코드로


원본은 http://stackoverflow.com/questions/7957215/how-can-i-change-the-font-size-of-my-uitableview-cell-title


cell.textLabel?.numberOfLines = 3

cell.textLabel?.adjustsFontSizeToFitWidth = true



처음에 위에 두 코드가 없을 경우



cell.textLabel?.numberOfLines 를 적용하고 나서 모습



마지막으로 cell.textLabel?.adjustsFontSizeToFitWidth = true 까지 적용한 모습





+ Recent posts