NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"URL"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:15.0]; NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
http://www.macupdate.com/info.php/id/22270/synergykm - 맥에서 synergy GUI 지원하는 Tool 유의사항 - 설정에서 컴퓨터 이름은 진짜 컴퓨터 이름 넣어야 됨 - 연결은 IP로 하면 됨 윈도우용은 http://www.macupdate.com/info.php/id/22270/synergykm 여기서 받으면됨 Mac OS 용도 있는데 그건 GUI가 없어서 터미널로 설정 잡주고 가야됨
0x80000000 + kCFStringEncodingDOSKorean NSURLConnection 을 사용해 return 받을때 서버가 UTF-8 임에도 EUC-KR로 줄때 -_-. NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; NSString *str = [[NSString alloc] initWithData:returnData encoding:0x80000000 + kCFStringEncodingDOSKorean];
NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:@"22", @"published",@"33",@"key",nil]; NSDictionary *dic2 = [NSDictionary dictionaryWithObjectsAndKeys:@"23", @"published",@"34",@"key",nil]; NSDictionary *dic3 = [NSDictionary dictionaryWithObjectsAndKeys:@"22", @"published",@"35",@"key",nil]; NSDictionary *dic4 = [NSDictionary dictionaryWithObjectsAndKeys:@"24", @"published",@"36",..
#pragma mark - #pragma mark UIWebViewDelegate -(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { //YES 면 링크 가능(처음에 불러올때도 인식하니 주의) NO면 다른페이지 안됨 ㅋㅋ return !whenLoaded; } - (void)webViewDidStartLoad:(UIWebView *)webView { // starting the load, show the activity indicator in the status bar [UIApplication sha..
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; - Notification 받기 [nc addObserver:self selector:@selector(myMethod:) name:@"myNotiName" object:nil]; - Notification 날리기 [nc postNotificationName:@"myNotiName" object:self userInfo:nil]; - Notification 해제 [nc removeObserver:self name:@"myNotiName" object:nil]; 메소드 선언은 다음과 같이 -(void)myMethod:(NSNotification *)noti{ NSString *stringVa..