uiviewcontroller - calling presentModalViewController to show a view created programmatically -
i've noticed if create uiviewcontroller-derived class programatically (without using nib) displayed call presentmodalviewcontroller, view slides in, it's transparent default until view covers entire screen, after point 'opaqueness' seems kick in , view beneath modalview no longer visible.
if create view using nib, slides in you'd expect, covering views beneath no transparency issues.
i noticed apple examples tend use nib-based view modalviews, wondered why. perhaps i'm missing something.....
it down foolish coding error on part.
i realised i'd copied/pasted code elsewhere viewdidload
self.view.backgroundcolor = [uicolor colorwithred:0.6 green:0.4 blue:0.2 alpha:0.3]; i'd set value of 0.3 alpha.
set 1.0 , transparency issue goes away...
problem solved
Comments
Post a Comment