简体   繁体   中英

Scroll View with transparent background (Objective-c Mac OS X)

I have a Scroll View in my Mac app with a white background but I want the background to be completely transparent. I changed the opacity of the background to 0 but that doesn't seem to help, so I added an image of my settings and i was hoping you maybe were able to see the problem

http://www.servimg.com/image_preview.php?i=8&u=12413370

Thank you in advance!

On iOS, you just set the background to the clearColor. It seems logical the same would apply to the Mac.

is this for a 10.7 App? If so it should just work out of the box. If you are doing 10.6 or earlier you might have to implement your own custom scrollbar or use a toolkit like Chamelion,etc to get the effect you are looking for. Only 10.7 has overlay scrollbars by default, prior to this the OS scrollbars subtracted area from the content view to dedicate to scrollbars.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM