ios - transparent background of the view presentViewController -
i using presentviewcontroller display popup on click of button in viewcontroller. getting black background. need transparent background. tried following,
uiview v1 = [[uiview alloc] init]; v1.alpha = 0.0f; v1.backgroundcolor = [uicolor clearcolor]; [self.view addsubview:v1]; uiview v2 = [[uiview alloc] initwithframe:10,10,270,270]; v2.backgroundcolor = [uicolor whitecolor]; [v1 addsubview:v2];
this displays popup, blanks out screen later. can please me. in advance.
regards,
neha
if testing on iphone, presentviewcontroller
hides parent view once presented view presented, request isn't valid.
if on ipad, presentviewcontroller
can have effect want setting modalpresentationstyle
property of presented viewcontroller uimodalpresentationformsheet
Comments
Post a Comment