본문 바로가기 메뉴 바로가기

다정한 강아지

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

다정한 강아지

검색하기 폼
  • 분류 전체보기 (39)
    • iOS (8)
    • Objective-C 2.0 (8)
    • Android (21)
    • etc. (1)
  • 방명록

Objective-C (5)
7. The System Frameworks

Item 47: Familiarize Yourself with the System Frameworks Item 48: Prefer Block Enumeration to for Loops - Fast Enumeration // Array NSArray *anArray = /* ... */; for (id object in anArray) { // Do something with 'object' } // Dictionary NSDictionary *aDictionary = /* ... */; for (id key in aDictionary) { id value = aDictionary[key]; // Do something with 'key' and 'value' } // Set NSSet *aSet = /..

Objective-C 2.0 2023. 1. 3. 17:00
3. Interface and API Design

Item 15: Use Prefix Names to Avoid Namespace Clashes Item 16: Have a Designated Initializer Item 17: Implement the description Method - (NSString*)description { return [NSString stringWithFormat:@"", [self class], self, _firstName, _lastName]; } If this were to be used, the output for an object of type EOCPerson would now look like the following: EOCPerson *person = [[EOCPerson alloc] initWithFi..

Objective-C 2.0 2022. 1. 25. 15:40
2. Objects, Messaging, and the Runtime

Item 6: Understand Properties 프로퍼티 속성 중 Memory-Management 관련된 속성인데 - assign : The setter is a simple assign operation used for scalar types, such as CGFloat or NSInteger. - strong : This designates that the property defines an owning relationship. When a new value is set, it is first retained, the old value is released, and then the value is set. - weak : This designates that the property define..

Objective-C 2.0 2022. 1. 19. 16:17
1. Accustoming Yourself to Objective-C

Item 1: Familiarize Yourself with Objective-C's Roots Item 2: Minimize Importing Headers in Headers When writing an import into a header file, always ask yourself whether it’s really necessary. If the import can be forward declared, prefer that. If the import is for something used in a property, instance variable, or protocol conformance and can be moved to the class-continuation category, prefe..

Objective-C 2.0 2022. 1. 17. 14:43
[Objective-C 2.0] Pointer with Objects

Objective-C 문법에서 왜 항상 변수 앞에 *로 선언하나 궁금했었는데.. NSString *someString = @"The string"; This syntax, mostly lifted straight from C, declares a variable called someString whose type is NSString*. This means that it is a pointer to an NSString. All Objective-C objects must be declared in this way because the memory for objects is always allocated in heap space and never on the stack. It is illegal to d..

Objective-C 2.0 2022. 1. 14. 16:31
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 전화연결하기
  • 프래그먼트
  • 비트맵버튼
  • 페이저타이틀스트립
  • 부가데이터
  • 뷰페이저
  • 제스처디텍터
  • CaseIterable
  • 다이얼연결
  • allcases
  • 어댑터
  • 터치리스너
  • 안드로이드
  • 액션바
  • 카카오톡열기
  • ios
  • 프래그먼트매니저
  • 표현패턴
  • 상태드로어블
  • objc
  • 전화걸기연결
  • subscript
  • 스낵바설정
  • swift
  • Objective-C
  • 데이터
  • 알림대화상자
  • 쉐이프드로어블
  • prepareforreuse
  • 인플레이터
more
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바