아웅 이거까지 완성하고 그녀랑 놀러가려고 했더니
//트위터 코드
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:
[NSURL URLWithString:@\"http://트위터 아이디:트위터 암호@twitter.com/statuses/update.xml\"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
[theRequest setHTTPMethod:@\"POST\"];
[theRequest setHTTPBody:[[NSString stringWithFormat:@\"status = %@\", themessage] dataUsingEncoding:NSASCIIStringEncoding]];
NSURLResponse* response;
NSError* error;
NSData* result = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error];
NSLog(@\"%@\", [[[NSString alloc]initWithData:result encoding:NSASCIIStringEncoding]autorelease]);
엉엉 뭐가 문제 인지 알려주삼 ㅠㅠ
댓글 0