swift - Can we hide a UIView partially in iOS -


i have partially hide uiview when user scrolls on it. there uiscrollview above uiview. example in given image below want hide area covered under scrollable area in blue color. views background colors clear color.

enter image description here

i want hide part given in below image, marked rectangle in red color. part of text (one, two, three) visible. enter image description here

each uiview, including uiscrollview, has core animation layer (a calayer).

you access calayer with

view.layer 

in turn, calayer has mask, access with

layer.mask 

using mask comprehensive method of controlling visibility , opacity @ runtime.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -