UIGraphicsBeginImageContext(self.reportList.frame.size);
CGRect tableViewFrame = self.reportList.frame;
self.reportList.frame = CGRectMake(0.0, 0.0, self.reportList.frame.size.width, self.reportList.contentSize.height);
[self.reportList.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *attachmentImage = UIGraphicsGetImageFromCurrentImageContext();
self.reportList.frame = tableViewFrame;
UIGraphicsEndImageContext();
By using above code i am getting screenshot of tableview ,my problem is screen shot of tableview is having cell accessory type of discloser indicator but i don’t need that cell type .Is any way to remove that accessory type
Set the accessory indicator to
UITableViewCellAccessoryNonebefore taking screenshot and then set it back toUITableViewCellAccessoryDisclosureIndicator.