Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I really like WSCoachMarksView, but found with all of the different iOS screen sizes and more UIs relying on autolayout, specifying the rect statically in the config was too cumbersome for the different devices (i have a branch that lets you specify different rects for different devices that I'll submit for a pull request shortly, but what a PITA that is for most elements that we were using.)
So, i created this fork/branch that adds the ability specify a tag number to get the rect as well as some ancillary ways to crop the cutout rect if you only want part of a particular UI element shown (the padding, which has a default of 10, and then you can set it on a per rect basis as a whole ("padding"), or each of the "paddingLeft", "paddingTop", "paddingRight", and "paddingBottom".
Also, if you specify the tag as an array, it will use the array to find the UI element nested within the view hierarchy. This includes static nested elements, as well as UITableViews and UICollectionViews.
This pull request has a demo program as well. Please let me know if you have any questions.
Thanks.
Example screens of the same element specified using a tag with a -65% paddingBottom on an iPhone6 and iPhone 4s.