ios - Clip/Control scrolling of table view -
sorry: problem little lengthy , may complicated:
i have uitableview
row section header view , cell. there background image (blurred) on whole uitableview
. image visible section header well. , achieved making background color of section header , cell clearcolor
. there text on cell. when scroll cell, text on cell gets section header (because section view clearcolor
).
what want cell text should not seen when entering header section (it same if section header has non-clear color alpha 1) if cannot see original background image section header view want see.
how can achieve effect? there way apply kind of transparent mask on section header view image below visible text cell not seen on when scrolling?
i'm not clear on how uitableview set up, try maskstobounds
property of calayer
. make sure add quartzcore framework import header:
#import "quartzcore/quartzcore.h"
then setting maskstobounds
property this:
yourview.layer.maskstobounds = yes;
Comments
Post a Comment