UIView shadow drawing wrong
Posted
by dc
on Stack Overflow
See other posts from Stack Overflow
or by dc
Published on 2010-05-28T19:46:19Z
Indexed on
2010/05/28
20:02 UTC
Read the original article
Hit count: 532
Trying to draw a shadow using code from this question: http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview
I implement it in a UIView subclass as discussed, but when I try and use it using UIView *shadow = [[ShadowView alloc]initWithFrame:CGRectMake(100,100,100,100)];
I get only a black square, rather than something resembling shadow.
Am I missing something here?
© Stack Overflow or respective owner