전체 글(344)
-
[리젝사유] 2.5: Apps that use non-public APIs will be rejected
으~ 리젝당했다.(2011.03.29) We found that your app uses one or more non-public APIs, which is not in compliance with the App Store Review Guidelines. The use of non-public APIs is not permissible because it can lead to a poor user experience should these APIs change. We found the following non-public API/s in your app: setAllowsAnyHTTPSCertificate:forHost: If you have defined methods in your source co..
2014.10.28 -
UIApplicationDelegate Event Function
## 애플리케이션 실행 완료 통지애플리케이션이 실행 될 때 "실행 완료" 와 "애플리케이션 활성화" 두 가지 이벤트가 발생 - (void) applicationDidFinishLaunching: (UIApplication *) app ## 애플리케이션 비활성화 통지전화가 걸려오거나 메일 착신의 경우, 잠금상태일 경우 비활성화 상태가 되기 직전에 비활성화 이벤트가 발생. - (void) applicationWillResignActive: (UIApplication *) app ## 애플리케이션 활성화 통지 - (void) applicationDidBecomeActive: (UIApplication *) app ## 애플리케이션 종료 직전 통지홈 버튼이 눌러져서 애플리케이션이 종료되기 직전에도 이벤트가 발생..
2014.10.28 -
UIImage
- 자주 사용하는 이미지 imageName는 시스템에 데이터를 캐싱하기 때문에 사용후 메모리에서 바로 해제가 되지 않는다.용량이 크고 자주 보여야 하는 이미지는 아래의 방법을 사용하는게 좋을것 같다.예) 통배경 이미지 UIImage *objImage = [UIImage imageNamed:@"test.png"]; - 한번만 쓰고 사용하지 않을 이미지 imageWithContentsOfFile 함수는 시스템에 데이터를 캐싱하지 않기 때문에 사용후 메모리에서 바로 해제가 된다.예) 웹에서 읽어와서 출력하는 일회성 이미지 NSString *strImagePath = [[NSBundle mainBundle] pathForResource:@"test.png" ofType:nil]; UIImage *objImage..
2014.10.28 -
Xcode 디버깅 설정
Debug창(Command + 6)에서 왼쪽 하단의 + 선택 Add Exception Breakpoint - Exception All => Done Add Symbolic Breakpoint - Symbol에 malloc_error_break 입력 => DoneAdd Symbolic Breakpoint - Symbol에 objc_exception_throw 입력 => Done Product - Scheme - Edit Scheme - Run 프로젝트명.app 선택 - Arguments - Environment Variables 의 + 선택name : NSZombieEnabled/ Value : YESname : NSDebugEnabled/ Value : YES Product - Scheme - Run 프..
2014.10.28 -
메모리 관리
## retainCount가 증가 함수- alloc- retain- copy- new ## retainCount 증가 함수, AutoRelease Pool 등록 함수- addSubView - UIButton *objButton = [UIButton buttonWithType:UIButtonTypeCustom];; Factory Method로 자동으로 autoreleaes가 된다.- NSString *str = [NSString stringWithFormat:@"%@", name];- UIImage *img = [UIImage imageNamed:@"test.png"]; ## 기타 retain : 참조카운터를 1 증가release : 참조카운터를 1감소. 참조카운터가 0이 되면 메모리가 해제된다.autor..
2014.10.28 -
Status Bar 없애기
소스[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
2014.10.28