ssh ID@IP
확장자가 없어도 이미지가 보여지는건 데이터가 있다는 것이므로 바이너리 데이터를 보여주는 형식으로 처리 // 이미지 추출 preg_match_all("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $row['content'], $out5); for($i = 0; $i < count($out5[0]); $i++){ // base64 데이터 가져오기 $imgBase64 = getImageData($out5[1][$i]); // mime type 가져오기 $imgData = getHeader($out5[1][$i]); $row['content'] = str_replace($out5[0][$i], '', $row['content']); } //함수 // 이미지 데이터를 가져와서 base6..
NSDate * now = [[NSDate alloc] init]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; // [dateFormat setDateFormat:@"a"]; // NSString * theTimeFlag = [dateFormat stringFromDate:now]; // // if ([theTimeFlag isEqualToString:@"AM"]) { // theTimeFlag = @"오전"; // } // else { // theTimeFlag = @"오후"; // } [dateFormat setDateFormat:@"MM.dd"]; NSString * theTime = [dateFormat stringFromDate..
1. TestViewController.h 파일 @interface TestViewController : UIViewController { IBOutlet UIActivityIndicatorView * activityIndicator; } @property (nonatomic, retain) IBOutlet UIActivityIndicatorView * activityIndicator; 2. TestViewController.m 파일 @synthesize activityIndicator; - (void)dealloc { [activityIndicator release]; [super dealloc]; } - (void)webViewDidStartLoad:(UIWebView *)webView { activ..