본문 바로가기

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

[ios] stream_socket_client() 에러 Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094414:SSL routines:func(148):reason(1044) in /home/hosting_users/point5web/www/APNSPush/push.php on line 47 Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in/home/hosting_users/point5web/www/APNSPush/push.php on line 47 Warn.. 더보기
[ios] modalview MFMessageComposeViewController #import #import MFMessageComposeViewControllerDelegateMFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];    if([MFMessageComposeViewController canSendText])    {        controller.body = @"Hello from Mugunth";        controller.recipients = [NSArray arrayWithObjects:@"12345678", @"87654321", nil];        controller.messageComposeDelegate = s.. 더보기
[ios] Create MD5 Hash from NSString, NSData or a File Create MD5 Hash from NSString, NSData or a File Posted on February 28, 2011 by John Muchow in Core Services MD5 (Message-Digest algorithm 5) is a crytographic hash function that is commonly used as a means to verify file integrity. For instance, if you store a file on a server and download the same onto a device, you can compare the server hosted MD5 value to a received copy to verify the file w.. 더보기
[ios] Interger to NSString , NSString to Integer 1. Integer → NSString//Integer to NSString int sampleInt = 30; NSString * outputString = [NSString stringWithFormat:@"%d", sampleInt];2. NSString -> Integer//NSString to Integer NSString *sampleString = @”30184923″; int outputInt = [sampleString intValue] ; 출처 : http://thefermata.net/?p=598[출처] NSInteger NSString 상호변환|작성자 오버보컬 더보기
[ios] tableview DataSource Delegate DataSource Methods (9개) - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView : 표현할 데이터의 총 Section의 갯수. (2차원 배열의 경우)- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section : 표현할 데이터에서 하나의 Section에 있는 총 Row의 갯수. (1차원배열의 경우엔 Section이 아닌 Array에 들어있는 총 Object의 갯수)- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section :.. 더보기
[ios] 스토리보드 view ios6 ios5 화면 스토리 보드를 여는데 길다란 view 라서 조금은 당황스러웠다. 예전처럼 iphone4 의 view을 볼수 있을까? 찾던중에 스토리 보드 오른쪽 아래 에 맨 왼쪽의 것을 누르면 view화면이 커졌다 작아졌다 그럴것이다. ㅜ 더보기
[ios] Provisioning profile can’t be found 기기테스트 중 에러 Provisioning profile ‘xxxx-xxxxxx-xxxxxx-xxxxxD19AC9FD854B’ can’t be found” 잘되던 것이 이렇게 나올때 조금 당황스럽다. 나의 상황은 이렇다.imac에서 테스트를 마치고 배포까지 완료된 상태에맥북에서 새로 인증서를 받고 작업을 하고 싶어 테스트까지 하는 중에 이렇게 나온것이다. 해결방법은 재대로 된 Provisioning profile 을 선택해야 한다는것이다. 예전에 사용했던 것이 로그로 남아 있어 프로젝트가 헷갈려 하고 잇는듯 싶다. 다른 블로그의 말대로 해 보았지만, 해결하지 못하였다. 1. 실행중인 Xcode Project를 닫습니다. 2. Finder에서 프로젝트 폴더로 이동합니다. 3. 프로젝트 .xcodeproj .. 더보기
[ios] aps-environment Error Domain=NSCocoaErrorDomain Code=3000no valid ‘aps-environment’ entitlement string found for application 기본적인 푸시 소스를 딜리게이트에 넣고 디바이스 값을 받아 오려 (기기테스트) 하려 할때 위와 같은 에러가 난다.해결방안은 예전에(기존에 appid 로 프로바이징) 모든것을 삭제하고 새로 만드는 작업이다. 물론 이러한 작업을 수십번은 해본거 같아 그래도 해결할수 없었다. 그렇게 몇번을 지우고 인증서를 받고 를 몇번을 하던터에 Could not launch “어플이름”No such file or directory (/Users/ 이러한 에러가 뜨게 되었고 오거나이져- 프로젝트에서 경로 삭제 밑 왼쪽의 리스트를 (오.. 더보기
[ios] 빌드오류 "No such file or directory" 빌드를 하면서 No such file or directory (/Users/... 오류가 나서 기기테스트를 못하게 되었다. 잘되던터라 이상하다 생각을 했다.검색을 통해 알게 된건 그동안 프로젝트 실행을 하고 프로젝트 명이 중복될 경우 겹칠수 있는 경로 오류인것이다. xcode - 오거나이저 - 프로젝트 - derived Data - 삭제 - xcode종료난 이래도 되어 - 프로젝트 왼쪽에 프로젝트명 리스트를 모두 삭제하여 해결을 완료 하였다. 더보기
[ios] 하나의 인증서로 여러 맥컴퓨터에서 개발하기 하나의 인증서로 여러대의 맥에서 개발하기 1. 인증서를 최초로 받은 컴퓨터(맥) 키체인에 접근합니다.2. 키체인 - 로그인- 인증서로 고고고!!3. 인증서 WWDR, developer, distribution 총 3개 인증서를 모두 클릭 후 오른쪽 바우스 - 항목 보내기 합니다.4. 개인정보 교환 .p12 확인후 알맞은 이름을 넣어 저장5. .p12 인증서를 다른 맥으로 옮김6. .p12을 클릭하여 비밀번호 입력후 알아서 키체인 접근이 됨.7. 내 인증서에 확인 WWDR, developer, distribution 8. xcode - organizer - provisioning profile - develoepr, distribution 9. 완료!!! 혹시 간혹 에러가 난다면, xcode의 버전이 맞는.. 더보기