I am adding UIImage dynamically and moving it on UIView and I have 4 buttons in bottom as well.
What I want is to save UIView as image but I dont want buttons to save while saving that UIView and I want UIImageView to be added behind Buttons.
screenshot code
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
Adding UIImageView
UIImage* image = [UIImage imageNamed:[NSString stringWithFormat:@"lam.jpg"]];
CGRect cellRectangle;
cellRectangle = CGRectMake(20 ,50,image.size.width/6 ,image.size.height/6 );
//[[self view] addSubview:blockView];
UIImageView *dragger = [[Draggable alloc] initWithFrame:cellRectangle];
[dragger setImage:image];
[dragger setUserInteractionEnabled:YES];
[self.view addSubview:dragger];
I have saved UIView as image like this but I dont want buttons to be saved. I have also used another UIView but I want whole screen to drag images thats my restriction. I hope that everyone got what I want.

I don’t quite get it. But as I understand you want a screenshot of the view with the cars, but without the buttons. Easiest solution would be to put a fullscreen view on your mainView. On that fullscreenView you put your car images. The buttons are also directly on the mainView. Than in your screenshot method you just use the fullscreenView instead of
self.view.