CGRect mRect = CGRectMake(0,0,730,905);
UIGraphicsBeginImageContext(mRect.size);
[self.containerView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
mRect is any frame which you wanted to take screen shot and containerview is the view where we need to take the screenshot.
UIGraphicsBeginImageContext(mRect.size);
[self.containerView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
mRect is any frame which you wanted to take screen shot and containerview is the view where we need to take the screenshot.