베타버전의 경우 XCode 3와 4의 설치경로가 틀리게 때문에..
아래와 같이 터미널에서 실행하면 됩니다.
패스워드를 입력해 주시면 제거가 됩니다.~
Posted by 마르스
Posted by 마르스
어플리케이션을 종료하지 않고 MFMailComposeViewController 클래스를 통해서
메일을 보낼 수 있다.
콜백을 받으려면 받으려는 클래스에 MFMailComposeViewControllerDelegate 를 추가한다.
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"제목입력"];
[controller setMessageBody:@"본문내용 입력" isHTML:YES];
[self presentModalViewController:controller animated:YES];
[controller release];
mailComposeDelegate 를 설정하였기 때문에 콜백을 받을 수 있다.
- (void)mailComposeController:(MFMailComposeViewController*)controller
didFinishWithResult:(MFMailComposeResult)result
error:(NSError*)error;
{
if (result == MFMailComposeResultSent) {
NSLog(@"성공!!!");
}
[self dismissModalViewControllerAnimated:YES];
}
Posted by 마르스
[UIApplication sharedApplication].idleTimerDisabled = YES;
Posted by 마르스
Posted by 마르스
Posted by 마르스
Posted by 마르스
-(void) myTestThread:(id)anObject {
NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init];
//이곳에 처리할 코드를 넣는다.
[autoreleasepool release];
[NSThread exit];
}
그리고 쓰레드를 호출한다.
[NSThread detachNewThreadSelector:@selector(myTestThread:) toTarget:self withObject:nil];
간단~
Posted by 마르스
- (void)viewDidLoad {
[super viewDidLoad];
UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectZero];
label1.tag = 100;
[self.view addSubview:label1];
}
- (void) applyUser {
UILabel *label1 = (UILabel *) [self.view viewWithTag:100];
label1.text = "MARS";
}
Posted by 마르스
Posted by 마르스

Posted by 마르스
냉정함을 잃지말자...!!
- 마르스
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 |