i'm trying to display pdf file in uiwebview. my pdf files have different size. one can see the shadow or gradient outside of pdf in uiwebview. i've tried different solution but with no luck. see the link. how can i get rid of those shadows?
duplicate with this answer, but not working for me the code accepted as aswer there:
webView.backgroundColor = [UIColor whiteColor];
for (UIView* subView in [webView subviews])
{
if ([subView isKindOfClass:[UIScrollView class]]) {
for (UIView* shadowView in [subView subviews])
{
if ([shadowView isKindOfClass:[UIImageView class]]) {
[shadowView setHidden:YES];
}
}
}
}