Variable
@propert (nonatomic/atomic, strong/weak/assign) Class Type *VariableName;
Method
-(Return Type) methodName: (param Type) param Name{
body
}
Object
-UILabel, UIImageView
-UINavigationController
-UITableViewController
-MKMapView
Rule
기본적으로 한 라인이 끝나면 세미콜론(;)으로 마친다.
생성은 alloc 키워드로 사용한다.
기본 생성자
- (id)init{
self = [super init];
if(self){
}
return self;
}
소멸자 - ARC 안쓰고 MRC 사용하는 경우
- (void)dealloc{
[super dealloc];
}
화면 전환
[self presentViewController:vc animated:true completion:nil];
[self dismissViewControllerAnimated:true completion:nil];
이벤드 등록
[btn addTarget:self action:@selector(touchBack:) forControlEvents:UIControlEventTouchUpInside];
로그 표시
NSLog(@"%@", 객체명);
개념
Block
String, Weak, 순환참조
NSOperationQueue, GCD
팩토리 메소드
ARC, MRC
Alloc, retain, release, copy
Shallow copy, Deep copy
'iOS' 카테고리의 다른 글
네이버 동영상 중급강의 2 (0) | 2020.02.22 |
---|---|
네이버 동영상 중급강의 1 (0) | 2020.02.22 |
이미지 가공 및 Base64 데이타 획득하기 (0) | 2020.02.12 |
APNS 푸시 인증서 갱신 및 테스트 (0) | 2019.12.23 |
IOS 단말 해상도 사이즈 및 런처 사이즈 (0) | 2019.12.23 |
댓글