iphone 開發筆記 menu view

 

menuView=[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] ];

menuView.backgroundColor=[UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.5];

menuView.hidden=YES;

 

 

CGRect frameR=CGRectMake(0.0,0,768.0,1024.0);

   // menuView=[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];

menuView=[[UIView alloc] initWithFrame:frameR];

menuView.backgroundColor=[UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.5];

    menuView.hidden=YES;

 

 

// Load XML

NSString *path = [[NSBundle mainBundle] pathForResource:@"haarcascade_frontalface_default" ofType:@"xml"];

CvHaarClassifierCascade* cascade = (CvHaarClassifierCascade*)cvLoad([path cStringUsingEncoding:NSASCIIStringEncoding], NULL, NULL, NULL);

CvMemStorage* storage = cvCreateMemStorage(0);

 

 

 UIStatusBarStyleBlackTranslucent,

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章