我有UILabel showtext,并且我编写了如下代码
showtext.layer.shadowOpticity = 1.0;
showtext.layer.shadowRadius = 0.0;
showtext.layer.shadowColor = [UIColor blackColor].CGColor;
showtext.layer.shadowOffset = CGSizeMake(0.01,1.0);并且它显示错误“访问未知的"showOpticity”属性的组件“。
有人能帮帮忙吗??
发布于 2011-05-23 15:41:31
shadowOpticity应为shadowOpacity
发布于 2011-05-23 15:48:21
您需要将QuartzCore.framework添加到项目中,然后在.pch文件中添加#import <QuartzCore/QuartzCore.h>。
https://stackoverflow.com/questions/6094223
复制相似问题