목록예전꺼(2014년이전꺼) (123)
liebus
아이폰 에서 이메일 발송부분을 구현 할려면 MessageUI.framework 를 추가해야 한다. 해더파일에 를 import 하고 MFMailComposeViewControllerDelegate Protocol를 사용해야 한다. 이 프레임워크를 사용하면 아이폰에서 기본으로 제공하는 E-Mail Component를 사용할 수 있다. //Send Mail MFMailComposeViewController *mailController = [[[MFMailComposeViewController alloc] init] autorelease]; mailController.mailComposeDelegate = self; [mcvc setSubject:@"Title"]; [mcvc setMessageBody:@"Co..
Xcode 4단축키 맵 입니다. 출처: http://cocoasamurai.blogspot.com/2011/03/xcode-4-keyboard-shortcuts-now.html 문제시 삭제 하겠습니다.
NSString *strTemp = @"test.PNG"; // 이미지 이름 NSString *temp=[NSString stringWithFormat:@"%@/Documents/%@", NSHomeDirectory(), strTemp); //Documents에서 strTemp이미지의 위치 얻는다. UIImage *iiTemp = [UIImage imageWithContentsOfFile:temp]; // Documents에서 이미지를 읽어 올때는 imageName은 안먹더라 // 꼭 imageWithContentsOfFile: 로 땡겨 오길 바람
UIView에 터치이벤트 UIView는 UIResponder의 sub class이다 따라서 Responder의 터치관련 이벤트처리 메소드를 Overring 해서 처리 한다. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { } -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { } -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { } -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { }