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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -