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

다정한 강아지

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

다정한 강아지

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

objc (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
6. Blocks and Grand Central Dispatch

GCD is the associated technology and provides an abstraction to threading, based on so-called dispatch queues. Blocks can be enqueued on these queues, and GCD handles all scheduling for you. It creates, reuses, and destroys background threads as it sees fit, based on system resources, to process each queue. Moreover, GCD provides easy-to-use solutions to common programming tasks, such as thread-..

Objective-C 2.0 2022. 12. 29. 16:05
5. Memory Management

Item 29: Understand Reference Counting NSMutableArray *array = [[NSMutableArray alloc] init]; NSNumber *number = [[NSNumber alloc] initWithInt:1337]; [array addObject:number]; [number release]; // do something with 'array' [array release]; As explained previously, this code won’t compile under ARC, owing to the explicit calls to release. In Objective-C, a call to alloc will result in the return ..

Objective-C 2.0 2022. 5. 10. 16:15
4. Protocols and Categories

Item 23: Use Delegate and Data Source Protocols for Interobject Communication @protocol EOCNetworkFetcherDelegate - (void)networkFetcher:(EOCNetworkFetcher*)fetcher didReceiveData:(NSData*)data; - (void)networkFetcher:(EOCNetworkFetcher*)fetcher didFailWithError:(NSError*)error; @end A delegate protocol is usually named as the class name followed by the word delegate, using camel casing for the ..

Objective-C 2.0 2022. 3. 4. 15:26
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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • objc
  • 안드로이드
  • 쉐이프드로어블
  • subscript
  • 스낵바설정
  • 뷰페이저
  • 데이터
  • prepareforreuse
  • 페이저타이틀스트립
  • 인플레이터
  • 알림대화상자
  • 카카오톡열기
  • ios
  • 다이얼연결
  • 액션바
  • 비트맵버튼
  • 부가데이터
  • 전화걸기연결
  • 프래그먼트
  • 전화연결하기
  • Objective-C
  • swift
  • 어댑터
  • 상태드로어블
  • CaseIterable
  • 프래그먼트매니저
  • 터치리스너
  • 표현패턴
  • 제스처디텍터
  • allcases
more
«   2025/07   »
일 월 화 수 목 금 토
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

티스토리툴바