[ios/tutorial] Implicit Animation 없이 property 값 바꾸기 [ios/tutorial] Implicit Animation 없이 property 값 바꾸기 -예를 들면 버튼의 text 를 바꿀 경우, 자연스럽게 글자가 fade out - fade in animation 이 먹는다.순간적으로 버튼의 text 를 바꿀 경우 이는 원하지 않는 동작일 수 있다. -다음 코드를 수행하면 implicit animation 없이 바로 작업을 수행할 수 있다.[UIView performWithoutAnimation:^{ [self.btn setTitle:btnText forState:UIControlStateNormal]; [self.btn layoutIfNeeded];}]; [ios/tutorial] Implicit Animation -> Layer Level 에 대한 이야기 .. 2017. 12. 13. 반응형 이전 1 다음