2019-04-15から1日間の記事一覧
環境: Swift5.0 UILabelのattributedTextのテキストを他の属性は変更せずに別の文字列に置き換える例。 @IBOutlet weak var textLabel: UILabel! private func setupUI() { if let attrStr = textLabel.attributedText?.mutableCopy() as? NSMutableAttribut…
環境: Swift5.0 UILabelのattributedTextのテキストを他の属性は変更せずに別の文字列に置き換える例。 @IBOutlet weak var textLabel: UILabel! private func setupUI() { if let attrStr = textLabel.attributedText?.mutableCopy() as? NSMutableAttribut…