ios - Present transparent UIView with opaque UIButton or UIImage -
i trying make transparent uiview
when using presentviewcontroller
. problem uibutton
or uiimageview
transparent, how can make them non-transparent?
targetviewcontroller = [self.storyboard instantiateviewcontrollerwithidentifier:@"newviewcontroller"]; targetviewcontroller.modalpresentationstyle = uimodalpresentationovercurrentcontext; [self presentviewcontroller:targetviewcontroller animated:yes completion:nil];
result: http://i.stack.imgur.com/yjjbv.png
i want uibutton
or uiimageview
opaque. how can it?
instead of using uiview's alpha, using clear backgroundcolor
targetviewcontroller.view.backgroundcolor = [uicolor clearcolor];
Comments
Post a Comment