본문 바로가기
[android] ripple mask 의 정체를 알아보자.. [android] ripple mask 의 정체를 알아보자.. https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html-Ripple(잔물결, 파도) 에 대해 공부하고 있는데 약간 헷갈리는 개념이 있다. 바로 요 녀석. 마스크이다. -우선 xml 을 간단히 해부해보면, ripple 에 지정되는 color 값이 바로 실제 ripple effect 의 색상 값이다.그리고 ripple 아래 정의된 item 이라는 녀석이 ripple 이 없을 때 background 로 그려지는 drawable 에 해당한다. 위의 예제에서는 기본적으로 white 색상이 view의 background 로 차게 되고, 빨간색 ripple .. 2018. 3. 31.
[ios/reference] Layer Style Property Animations [ios/reference] Layer Style Property Animations https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/LayerStyleProperties/LayerStyleProperties.html -Geometry Properties bounds position frame anchorPoint cornerRadius transform zPosition -Background Properties backgroundColor backgroundFilters ( only OS X) -Layer Content contents contentsGravity masksToBounds .. 2017. 11. 24.
[Effective Objective-C] #48 반복문에는 블록 열거를 사용하라 [Effective Objective-C] #48 반복문에는 블록 열거를 사용하라 출처 : Effective Objective-C -최신 오브젝티브-C 에는 열거하는 방법이 많다.표준 C 반복문부터 오브젝티브-C 1.0의 NSEnumerator, 그리고 오브젝티브-2.0 의 빠른 열거자(fast enumeration)도 있다. for 루프 -컬렉션을 열거하는 첫 번째 메서드는 훌륭하고 오래된 방법인 for 루프다.NSArray *anArray = …;for (int i=0; i < anArray.count; i++){ id object = anArray[i]; // do something} 이 방법은 쓸만하지만 사전이나 집합을 반복하면 훨씬 복잡해진다.NSDictionary *aDictionary = ….. 2017. 10. 15.
반응형