2013-04-10 8 views

risposta

19

Basta impostare shadowOffset su (0,0) o qualcosa di simile. Regola shadowRadius se vuoi che l'ombra sia più grande. Il valore predefinito è 3 ma potrebbe essere necessario aumentarlo. Puoi anche giocare con shadowOpacity per determinare la visibilità dell'ombra.

+3

Questo ha fatto: self.sampleTableView.layer.cornerRadius = 15.0; self.shadowView.layer.cornerRadius = 15.0; CALayer * layer = shadowView.layer; layer.shadowOpacity = 1.0; layer.shadowColor = [[UIColor blackColor] CGColor]; layer.shadowOffset = CGSizeMake (0,0); layer.shadowRadius = 15; – LarryB

3
_yourImageView.layer.shadowRadius = 10.0; 

Questa linea riproduce il gioco. Prova ad aumentare il tuo shadowRadius. In questo modo otterrai l'ombra su tutti e 4 i lati.

+1

Grazie Bro ... :) – Dhiru

Problemi correlati