2017-10-03から1日間の記事一覧
環境: Swift3 StroyBoard 上で UILabel の文字列を Plain ではなく Attributed で設定し、その文字列内の PlaceHolder を後から別の文字列に置き換えたいケースがあり必要になった。 NSMutableAttributedString#replaceCharacters(in:with:)メソッドを使用す…
環境: Swift3 StroyBoard 上で UILabel の文字列を Plain ではなく Attributed で設定し、その文字列内の PlaceHolder を後から別の文字列に置き換えたいケースがあり必要になった。 NSMutableAttributedString#replaceCharacters(in:with:)メソッドを使用す…