본문 바로가기
[ios/reference] Setting Up Layer Objects [ios/reference] Setting Up Layer Objects https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/SettingUpLayerObjects/SettingUpLayerObjects.html#//apple_ref/doc/uid/TP40004514-CH13-SW12 -iOS 앱에서 Core Animation 은 항상 enable 되어 있고, 모든 view 는 layer 가 backed 되어 있다.OS X 는 Core Animation 을 명시적으로 enable 시켜야 한다. -Layer-backed view 는 CALayer 를 기본으로 만든다.그러나 상황에 따라 다른 Lay.. 2017. 11. 21.
[ios/reference] Core Animation Basics [ios/reference] Core Animation Basics https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/CoreAnimationBasics/CoreAnimationBasics.html#//apple_ref/doc/uid/TP40004514-CH2-SW3 -Prerequisite 로 앞의 글들을 읽어보길...앞의 글들에서 catch 하지 못한 부가 정보들만 정리[ios/reference] Core Animation -Core Animation 을 사용하지 않고, 변화에 대해서 drawRect: 에서 다시 그리는 방법도 있지만,이 방법은 MainThread 에서 그림을 그리기 때문에.. 2017. 11. 20.
[ios/reference] Core Animation [ios/reference] Core Animation https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004514-CH1-SW1 -Core Animation 은 iOS, OS X 모두에 속하는 animation 에 대한 infra structure 이다. -몇 가지 설정만 해주면, 알아서 animation 을 만들어 수행한다.animation 에 대한 수행은 안쪽에서 알아서 hardware 가속 등을 사용해 rendering 한다. -Core Animation 은 UIKit/ AppKit 아래.. 2017. 11. 19.
[ios/tutorial] Flip Left/Right, & Curl Up/Down Animation [ios/tutorial] Flip Left/Right, & Curl Up/Down Animation -[UIView beginAnimations:nil context:nil];[UIView setAnimationDuration:1.5];[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:targetView cache:YES];[UIView commitAnimations]; -animationTransition 에 들어갈 수 있는 constant 들은...UIViewAnimationTransitionFlipFromLeftUI.. 2017. 11. 18.
[ios/tutorial] Xcode 에서 주석을 통해 Documenting 하는 방법 [ios/tutorial] Xcode 에서 주석을 통해 Documenting 하는 방법 http://www.raywenderlich.com/66395/documenting-in-xcode-with-headerdoc-tutorial -Documenting 을 header 에 하는 것이 맞을까 implementation 에 하는 것이 맞을까 검색하던 중 좋은 자료를 찾아서 정리해보았다. -더 많은 디테일한 정보를 얻고 싶다면, 상단에 링크된 원문을 읽는 것이 추천된다. -HeaderDoc 이라는 녀석이 있는데, Xcode5 & iOS7 과 함께 발표된 추가기능이다.이 녀석은 command line tool 인데, code 에 있는 document 를 HTML 형태로 만들어준다.( 물론 지원하는 형태로 작성했.. 2017. 11. 16.
[ios] nil? Nil? NULL? NSNull? [ios] nil? Nil? NULL? NSNull? nil -(id)0 // 어디에도 대입될 수 있는 null 의 형태literal null value for Objective-C objects -NSObject 를 상속한 녀석이 alloc 이 되면 기본적으로 0 pointer 인 nil 이 assign 된다. -nil 은 message 를 보낼 수 있다는 특징이 있다.nil 에 보낸 message 는 zero 를 return 한다. Nil -(Class)0 // literal null value for Objective-C classes -Class someClass = Nil;Class anotherClass = [NSString class]; NULL -(void*)0 // literal null.. 2017. 11. 15.
[ios] xib 파일을 rendering 하는 custom view 만들기 [ios] xib 파일을 rendering 하는 custom view 만들기 참조 : https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html 1. UIView 의 subclass 를 만든다.2. header 의 @interface 선언 위에 IB_DESIGNABLE 을 붙인다. // interface builder 가 해당 view 를 그린다.3. xib 파일을 만들어 view 를 그린다.4. Custom Class 에 위에서 생성한 view 를 assign 해준다. @interface, assign, custom class, header, .. 2017. 11. 11.
[ios] UIView 에 대한 이야기 [ios] UIView 에 대한 이야기 참조 : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/ -UIView 는 다른 View 를 가질 수 있다. -보통 Subview 는 superView 의 bound 에 clip 되지 않지만 clipsToBounds property 를 사용하면 clip 시킬 수 있다. -view 의 geometry 는 frame, bounds, 그리고 center property 에 의해 결정된다.frame 은 superview 기준의 position 과 size 를 결정할 때 사용된다.center 는 size 변화 없이 position 변경할 때 사용된다.bounds 는 view.. 2017. 11. 10.
[ios] NSManagedObject description 에서는 relationship 을 print 하지 말자!! [ios] NSManagedObject description 에서는 relationship 을 print 하지 말자!! -NSManagedObject 의 description 에서 relationship 에 해당하는 item 을 찍으면( 그런 item 은 기본으로 fault ), fault 가 fire 되지 않으면서 bad memory access error 가 발생할 수 있다. -게다가 해당 property 들을 실제로 접근해서 쓰는 것이 아닌데, description 을 호출했다는 이유로 fault 가 풀려 버린다면, 이는 메모리 낭비로도 이어질 수 있다. -그러므로, description 에서 relationship 을 print 하지 말아라!!!! bad memory access error, de.. 2017. 11. 9.
반응형