본문 바로가기
개발노트/iOS

xcode : storyboard

by 전지적진영시점 2022. 1. 6.
반응형

storyboard 정리 노트

 

Text

1 . Button 혹은 TextView에서 텍스트에 underline(밑줄)을 추가하고 싶은 경우 

프로퍼티로 선언

let loadUnderLine: [NSAttributedString.Key: Any] = [

          .font: UIFont.systemFont(ofSize: 15),

          .underlineStyle: NSUnderlineStyle.single.rawValue]

viewDidload에

let attributeString = NSMutableAttributedString(string: "비밀번호 초기화", attributes: loadUnderLine)
 
resetPw.setAttributedTitle(attributeString, for:.normal)

 

반응형

댓글