/*UINavigationBar *navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 44.0)];
        [navigationBar setBarStyle:UIBarStyleBlack];
        [navigationBar setTranslucent:YES];

        UINavigationItem *aNavigationItem = [[UINavigationItem alloc] initWithTitle:@""];
        [aNavigationItem setLeftBarButtonItem:[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelCropping)] autorelease]];
        [aNavigationItem setRightBarButtonItem:[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(finishCropping)] autorelease]];

        [navigationBar setItems:[NSArray arrayWithObject:aNavigationItem]];

        [aNavigationItem release];

        [[self view] addSubview:navigationBar];

        [navigationBar release];*/

        UIView *bg = [[UIView alloc] initWithFrame:CGRectMake(0.0f, cropperView.frame.size.height - 82.0f, cropperView.frame.size.width, 82.0f)];
        [bg setBackgroundColor:[UIColor blackColor]];
        [bg setAlpha:0.5f];
        [self.view addSubview:bg];
        [bg release];

        UIButton *cancel = [UIButton buttonWithType:UIButtonTypeCustom];
        [cancel setFrame:CGRectMake(20.0f , cropperView.frame.size.height - 65.0f, 100.0f, 44.0f)];
        [cancel addTarget:self action:@selector(cancelCropping) forControlEvents:UIControlEventTouchUpInside];
        [cancel setTitle:NSLocalizedString(@"Cancel", @"") forState:UIControlStateNormal];
        [self.view addSubview:cancel];

        UIButton *finish = [UIButton buttonWithType:UIButtonTypeCustom];
        [finish setFrame:CGRectMake(cropperView.frame.size.width - 120.0f , cropperView.frame.size.height - 65.0f, 100.0f, 44.0f)];
        [finish addTarget:self action:@selector(finishCropping) forControlEvents:UIControlEventTouchUpInside];
        [finish setTitle:NSLocalizedString(@"Done", @"") forState:UIControlStateNormal];
        [self.view addSubview:finish];

        UIButton *btn_rotation = [UIButton buttonWithType:UIButtonTypeCustom];
        [btn_rotation setFrame:CGRectMake(0 , cropperView.frame.size.height - 32 , 44, 32)];
        [btn_rotation addTarget:self action:@selector(actionRotation:) forControlEvents:UIControlEventTouchUpInside];
        [btn_rotation setImage:[UIImage imageNamed:@"nc_crop_rotate_btn.png"] forState:UIControlStateNormal];
        [btn_rotation setImage:[UIImage imageNamed:@"nc_crop_rotate_btn_h.png"] forState:UIControlStateHighlighted];
        btn_rotation.alpha = 0.7;
        [self.view addSubview:btn_rotation];

        UIButton *btn_restore = [UIButton buttonWithType:UIButtonTypeCustom];
        [btn_restore setFrame:CGRectMake(cropperView.frame.size.width - 44 , cropperView.frame.size.height - 33 , 44, 33)];
        [btn_restore addTarget:self action:@selector(actionRestore:) forControlEvents:UIControlEventTouchUpInside];
        [btn_restore setImage:[UIImage imageNamed:@"nc_crop_reset_btn.png"] forState:UIControlStateNormal];
        [btn_restore setImage:[UIImage imageNamed:@"nc_crop_reset_btn_h.png"] forState:UIControlStateHighlighted];
        btn_restore.alpha = 0.7;
        [self.view addSubview:btn_restore];