본문 바로가기

iphone 로컬라이징 출처 : http://www.pcraft.kr/103 1. xib 로컬라이징 xib는 아시다시피 Interface Builder로 만든 UI 인스턴스 입니다. xcode에서 로컬라이징할 xib를 선택한후 Get Info를 합니다. General Tab에서 Make Localization을 클릭하면 기본적으로 English가 만들어집니다. Korean을 추가하려면 Add Localization을 클릭하여 Korean을 입력하면 생성이 됩니다. 이 순간부터 독립적인 UI가 생기므로 개발이 완료된 후 이 작업을 하시는 것이 좋습니다. 이제는 기존 xib파일이 2개로 나뉘어 있는 것을 보실 수 있는데, 그중 English를 더블클릭하여 Interface Builder로 여신후 Tool - Strings로 변경을.. 더보기
custom keyboard 1) Overlay an image. 2) Overlay a button. And you’re done. Here’s the code I used: - (void)textFieldDidBeginEditing:(UITextField *)textField { // locate keyboard view UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1]; UIView* keyboard; UIImageView *decimalKeyboard = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 216)]; decimalKeyboard.image = [UIImage.. 더보기
개발자료 정리 출처 : http://improgrammer.com/12 -푸쉬 서버 개발 관련 자료- 이지 APNS 오픈 소스 라이브러리 http://www.easyapns.com/ 구글 코드 APNS 오픈 소스 http://code.google.com/p/apns-php/ 서버 튜토리얼 http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ -label이나 textView에 현재 시간을 표시하고 싶습니다- NSDate *t = [NSDate date]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; NSString *timeSt.. 더보기
NSString 자주 쓰는 함수 NSDate를 NSString으로 Iphone NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyy년 MM월 dd일 hh:mm:ss"]; NSString *strDate = [formatter stringFromDate:[NSDate date]]; NSLog(@"%@", strDate); //---------------------------------------------------------- NSString* aStr = [[NSString alloc] initWithData:aData encoding:NSUTF8StringEncoding]; NSData* aData = [aStr data.. 더보기
UIImageView URL로 로드하기 UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageWithData: [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.abc.com/image.png"]]]]; 더보기