본문 바로가기

프로그램 경험

[Visual Studio] 바탕색상 및 글꼴 눈깔이 빠질듯 해서 바탕색상을 변경 했다. 글꼴은 Courier New, 10 으로 지정 눈이 편한 글꼴은 뭘까 찾던중 이런 좋은 사이트를 발견! http://www.lowing.org/fonts/ 난 이중에서 Bitstream Vera Sans Mono 글꼴이 가장 맘에 든다~^^ 이거 다운 받아서 설치중~ 아래는 다운 경로. http://www.gnome.org/fonts/
[iPhone] UIColor 색상 각 구성데이터 가져오기 UIColor *lineColor = [UIColor redColor]; const CGFloat *components = CGColorGetComponents(lineColor.CGColor); NSString *msg = [NSString stringWithFormat:@"%f,%f,%f", components[0],components[1],components[2]];
[ASP.NET] 설치 프로그램 추가 제거 - Windows 기능 사용/사용 안함 - 인터넷 정보 서비스 - World Wide Web 서비스 - 응용 프로그램 개발 기능 - ASP.NET 체크
[iPhone] 이미지 가져와서 그리기 CGContextRef context = UIGraphicsGetCurrentContext(); NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"imagefile.bmp" ofType:nil]; UIImage *img = [UIImage imageWithContentsOfFile:imagePath]; CGImageRef image = CGImageRetain(img.CGImage); CGRect imageRect; imageRect.origin = CGPointMake(15.0, 15.0); imageRect.size = CGSizeMake(25.0, 25.0); CGContextDrawImage(context, imageRect, imag..
[iPhone] UIView 캡쳐 UIGraphicsBeginImageContext(self.bounds.size); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage* image1 = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(image1, nil, nil, nil);
[iPhone] expected specifier-qualifier-list before 'virtual' .hpp 파일을 생성해서 #import를 했더니 이딴 에러가 등장했다. 해결방법은 모든 파일을 .m에서 .mm으로 변경하면 된다.
[iPhone] TableView의 전체 셀 접근하기 & 선택표시 사라지기 //NSArray의 데이터 개수만큼 순환하면서 각각의 TableViewCell 에 접근 for (int i=0; i < [menu count]; i++) { UITableViewCell *cell = [tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]]; cell.accessoryType = UITableViewCellAccessoryNone; if (i == [indexPath row]) { cell.accessoryType = UITableViewCellAccessoryCheckmark; } } //선택표시 사라지기 [tableView deselectRowAtIndexPath:[tableView indexPathFo..
[VC++] 다이얼로그 엔터 치면 종료 되는 현상 방지 BOOL CRequest1App::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_KEYDOWN && (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE)) return FALSE; return CWinApp::PreTranslateMessage(pMsg); }