반응형

스위프트 2

[iOS Swift] attributedText 초기화 문제

Can't reset UILabel attributedText when a UITableViewCell is reused The problem I'm using a UITableView to show the list of transactions of a credit card. If the transaction is a chargeback, I'm adding a strikethrough style to the label: The problem happens when ... stackoverflow.com 아 진짜 골때리는 문제가 있었다가 해결이 되어서 급하게 올립니다... 보통 저는 attributedtext를 초기화할 때 다음처럼 사용했습니다. label.text = nil label.attribute..

[iOS - Swift기초] 스위프트의 변수(Variable)와 자료형(Type) (정리중)

이전 포스트에서 Swift가 뭔지 일단은 정리를 했습니다. 보통 언어를 (처음 또는 새로운 언어를)공부하게 되면 기본적으로 변수, 상수, 자료형(타입, 데이터 타입)을 가장 먼저 배우게 됩니다. 이번엔 변수와 자료형에 대해서 정리해보겠습니다. (해당 포스트는 지속적으로 정리중이기 때문에 내용이 수정 될 수 있습니다!) 1. 변수(Variable) 사전적 의미 그대로 변수는 변경이 가능한 값을 의미합니다. 만약 이 글을 보고 계신 분 중에서 Java를 배우신 분이라면 다음과 같이 사용하셨을겁니다. public class JavaExample { public static void main(String[] args) { int number1; // int형 변수인 number1선언 int number2 = 1..

반응형