// [FileManager clearDirImages];
#import "RCEasyTipView.h"
#import "ConfirmationEditor.h"
#import "QualityControl.h"
#import "PresentCondition.h"
#import <QuartzCore/QuartzCore.h>
#import "GlobalVar.h"
#import "Entity.h"
#import "SqlUtils.h"
#import "SuperAddressSelector.h"
#import "DCH_BsQtChkEdtg.h"
#import "DCH_BsQtChk.h"
@implementation PresentCondition
@synthesize mTableView, mLblHosh, mlblStatstics, mFlag, mChkAll;
@synthesize mListSearchingResult, mainPanel;
//@synthesize mDate1, mDate2;
/*
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
*/
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
static void oldOne(PresentCondition *object) {
[[object->_btnSort layer] setBorderColor:[UIColor colorWithRed:177/255 green:137/255 blue:167/255 alpha:1].CGColor];
[[object->_btnSort layer] setBorderWidth:0.0];
[[object.btnSiteInfo layer] setBorderWidth:1.0f];
[[object.btnSiteInfo layer] setCornerRadius:8.0f];
[[object.btnSiteInfo layer] setMasksToBounds:YES];
// [[self.btnSiteInfo layer] setBorderColor:[UIColor colorWithRed:246/255 green:135/255 blue:38/255 alpha:1].CGColor];
[[object.btnSiteInfo layer] setBorderColor:UIColor.orangeColor.CGColor];
[object->mLblHosh setText:GlobalVar.globalVar.userSelectionSiteInformation.nm_site];
// NSLog(@"btnSiteInfo %@", GlobalVar.globalVar.userSelectionSiteInformation.nm_prgs_phs);
sqlite3 *database;
NSString *databaseName = @"mbass.db";;;;;;;;;;;;;;;;;;;;
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);;;;;;;;;;;;;;
NSString *documentsDir = [documentPaths objectAtIndex:0];;;;;;;;;;;;;;;;;;;;
NSString *databasePath = [documentsDir stringByAppendingPathComponent:databaseName];;;;;;;;;;;;
NSString *currentProgressString = @"";
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) {
NSString *query = @"select nm_prgs_phs \
from ddtbt_site;";
const char *sqlStatement = [query cStringUsingEncoding:NSASCIIStringEncoding];
sqlite3_stmt *compiledStatement;
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
// Loop through the results and add them to the feeds array
while(sqlite3_step(compiledStatement) == SQLITE_ROW) {
currentProgressString = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)];
break;
}
}
sqlite3_finalize(compiledStatement);;;;;;;;;;;;;;;;;;;;;;;;;;
}
sqlite3_close(database);;;;;;;;;;;;;;;;;;;;;;;;;;;;
[object.btnSiteInfo setTitle:currentProgressString forState:UIControlStateNormal ];
object->_nflagRefreshStat = true;
[object initializeControls];
[object initActivityIndicator];
[object initializeData];
}
벡터 내적 조건
두 벡터의 차원(길이)이 같아야 한다.
앞의 벡터가 행 벡터이고 뒤의 벡터가 열 벡터여야 한다.
#import <AVKit/AVPlayerViewController.h>
#import <CoreMedia/CMTime.h>
// MPMoviePlayerController *_player;
[AVPlayerViewController init] player * _player;
typedef NS_ENUM(NSInteger, PlayerbackState) {
PlayerbackStateUnknown = 0,
PlayerbackStatePaused,
PlayerbackStopped,
PlayerbackStatePlaying,
PlayerbackStateCompleted
};
- _player = [[MPMoviePlayerController alloc] initWithContentURL:nil];
+// _player = [[AVPlayerViewController alloc] initWithContentURL:nil];
+// [[AVPlayer alloc] initWithURL:[NSURL URLWithString:@(videoUrl.c_str())]];
+ _player = [[AVPlayer alloc] initWithURL:nil];
- [_player play];
+ [_player.player play];
- [_player setContentURL:nil];
+//hjh [_player setContentURL:nil];
+// [(AVURLAsset *)_player.player URL];
+