DHSmartScreenshot icon indicating copy to clipboard operation
DHSmartScreenshot copied to clipboard

How to exclude all rows under a specified section?

Open s1u opened this issue 10 years ago • 1 comments

For instance, a table view contains section 1, 2, 3..., there are several rows under each section, but their quantities are dynamic and different.

How to exclude section 2 and its all rows when using this?

s1u avatar Feb 07 '15 11:02 s1u

Hi iOsdev, right now there is no way to accomplish that "the easy way", the work around I suggest is to build the 3 sets of indexes and indexPaths for the sections, rows and footers that are of your interest, then you use this method:

  • (UIImage *)screenshotOfHeadersAtSections:(NSSet *)includedHeaderSections footersAtSections:(NSSet *)includedFooterSections rowsAtIndexPaths:(NSSet *)includedIndexPaths;

I will be thinking on a way to add your suggestion as a feature on a forthcoming release.

davidman avatar Feb 09 '15 03:02 davidman