본문 바로가기

개발도구/iOS - 아이폰 개발

[ios] 'aps-environment' 인타이틀먼트 문자열 없음" Error: Error Domain=NSCocoaErrorDomain Code=3000 "응용 프로그램에 대해 발견된 'aps-environment' 인타이틀먼트 문자열 없음" UserInfo=0x117d00 {NSLocalizedDescription=응용 프로그램에 발견된 'aps-environment' 인타이틀먼트 문자열 없음} AppDelegate에서 DeviceToken을 받지 못했을때 나오는 에러이며 Provisioning Profile 이 존재함에도 이러한 에러가 난다. 저의 경우에는 xcode 업데이트 후에 이런 에러가 나게 되어 찾아본 결과 아래와 같이 해결할수 있습니다. 1. iOS Provisioning Portal 에 갑니다.1-1 . certificates는 그대로 나둔다(수정하지 .. 더보기
[ios] label 정렬 - Vertically align text within a UILabel 더보기
[ios] keyboard textFieldShouldReturn 안될때 기본적으로 키보드 딜리게이트 의 textFieldShouldReturn 는 아래와 같이 사용한다. 물론 .h - UITextFieldDelegate 상속되어 있어야 한다. - (BOOL)textFieldShouldReturn:(UITextField *)textField { NSLog(@"return Key at %@",textField); [tfieldPhone1 resignFirstResponder]; [tfieldPhone2 resignFirstResponder]; return YES; } 하지만 , 아무리 해도 안되어 찾아보니. 중요한 한가지가 있었다. TextFieldName.delegate = self; 이것이다. 적절한 곳에 위와 같이 딜리케이트를 넣어주어 설정하면 좋을거 같다. 나는 키보드 .. 더보기
[ios] 값 주고 받기 - 값 넘기기 펌 - http://whitegom.tistory.com/111) NSuserDefaults불러오기 [[NSuserDefaults standardUserDefaults] valueForKey:(NSString *)]; ex) [NSUserDefaults standardUserDefaults]valueForKey:@"Key"]; NSString *receiveData = [NSUserDefaults standardUserDefaults]valueForKey:@"Key"]; 저장 [[NSuserDefaults standardUserDefaults] setValue:(id) forKey:(NSString *)]; ex) NSString *sendData = @"send"; [[NSUserDefaults sta.. 더보기
[ios] 테이블셀 이미지때문에 느려짐 LazyTableImages http://developer.apple.com/library/ios/#samplecode/LazyTableImages/Introduction/Intro.html IOS TABLEVIEW CELL 에서 이미지 처리를 비동기식으로 처리함..이것은 테이블 셀의 느려짐을 방지 할수 있으니, 참고!! 더보기
[ios] tableview 내용 편집, nibWithNibName - (void)_startTimerThread {// Tableview delegate로 다른 클래스에서 호출해오기 NSLog(@" 세션수 = %d ", [self.tbl numberOfSections]); NSLog(@" 세션의 행수 = %d ", [self.tbl numberOfRowsInSection:0]); NSLog(@" NSIndexPath 만들기 =%@ ", [NSIndexPath indexPathForRow:0 inSection:0] ); NSLog(@" 현재 선택된 행 =%d ", [[self.tbl indexPathForSelectedRow] row]); NSLog(@" 현재 선택된 세션 =%d ", [[self.tbl indexPathForSelectedRow] section]); /.. 더보기
[ios] 시간계산 date //Date Type yyyy-MM-dd HH:mm:ss NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy"]; int tyear = [[dateFormatter stringFromDate:[NSDate date]] intValue]; [dateFormatter setDateFormat:@"MM"]; int tmonth = [[dateFormatter stringFromDate:[NSDate date]] intValue]; [dateFormatter setDateFormat:@"dd"]; int tday = [[dateFormatter stringFromDate:[NSDate.. 더보기
[iOS]GestureRecognizer 터치이벤트 와 테이블에 적용방법 먼저 테이블의 적용은 이렇다 UITapGestureRecognizer *TapPressed = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onCellTapPressed:)]; [self.tableviewname addGestureRecognizer:TapPressed]; [TapPressed release];아래의 설명에 따라 제스쳐를 달아주고 위와 같이 테이블에 addGestureRecognizer로 적용하게 되면 처리 완료!! The UIGestureRecognizer class is available to help with detecting and responding to the various UI gestures co.. 더보기
[ios] llvm-gcc-4.2 failed with exit code 1 한 어플을 xcode3 부터 개발을 했던터라 최근 xcode에서도 잘 사용을 하고 기기 개발과 배포까지 처리하며 진행을 잘하고 있었다.배포하려고 아카이브를 하고 오거나이저에서 아이튠커넥트로 올리는 중llvm-gcc-4.2 failed with exit code 1이렇게 에러가 났다. 조금 찾아 보니, 예전에 사용했던 구글 API 의 .a 파일의 라이브러리가 깨진것이다. 구글의 분석기는 이미 업데이트되어 예전꺼는 ios6 부터(최근 xcode)는 사용하지 못하게 된거 같다. 그래서 그냥 필요없을거 같아 구글분석기에 관련한 코드주석과 라이브러리리를 삭제하고 나니 잘 되넹~~ 더보기
[ios] 푸시 한글 깨짐 푸시 php 소스를 구현하여 처리를 해보아도 영어 와 숫자는 잘 푸시가 들어 가는데 이상하게 한글은 소리만 나고 문자가 노티피케이션 센터에 나오지를 않는다. 검색을 해보니, utf-8 과 euc-kr의 차이라 하는데, 전혀 예상하지 못했었다. 그래서 변환 하는 코드를 확인하여 중요하다 하여 변경해 보아도 잘 처리가 안되엇다. 결국 php 소스를 다른것으로 교체하기로 하고 아래의 소스를 참고 하기로 하였다. 주소 : http://........php? mcontents=준비됬나요?빨강색만 수정하여 사용하세요그래도 한글이 깨지거나 소리만 난다면 meta 쪽을 euc-kr , utf-8 / 또는 iconv("EUC-KR", "UTF-8", 한글 문자열); , iconv("UTF-8", "EUC-KR", 한글 .. 더보기