Ios UILabel中的错误

Ios UILabel中的错误,ios,interface,uilabel,Ios,Interface,Uilabel,在下面的(添加渐变标签部分)教程中,我尝试使用FXlabel。这是我的viewDidLoad方法中的一些代码: self.logoLabel = [[FXLabel alloc] initWithFrame:CGRectMake(14, 11, 280, 87)]; [logoLabel setFont:[UIFont boldSystemFontOfSize:45]]; [logoLabel setTextColor:[UIColor whiteColor]]; [logoLabel se

在下面的(添加渐变标签部分)教程中,我尝试使用FXlabel。这是我的viewDidLoad方法中的一些代码:

self.logoLabel = [[FXLabel alloc] initWithFrame:CGRectMake(14, 11, 280, 87)];

[logoLabel setFont:[UIFont boldSystemFontOfSize:45]];

[logoLabel setTextColor:[UIColor whiteColor]];
[logoLabel setShadowColor:[UIColor blackColor]];
[logoLabel setShadowOffset:CGSizeMake(0, 2)];
[logoLabel setTextAlignment:UITextAlignmentCenter];
[logoLabel setBackgroundColor:[UIColor clearColor]];
[logoLabel setText:@"Attorney Biz"];

[logoLabel setGradientStartColor:[UIColor colorWithRed:163.0/255 green:203.0/255 blue:222.0/255 alpha:1.0]];
[logoLabel setGradientEndColor:[UIColor whiteColor]];
不幸的是,我在倒数第二行得到一个错误
“UILabel”的无可见@interface声明选择器“setGradientStartColor”
“UILabel”的无可见@interface声明选择器“setGradientEndColor”


有人能解释一下如何删除这些错误吗?

检查头文件中的logoLabel声明并在实现文件中导入“FXLabel.h”

@class FXLabel;
@interface SomeClass:SomeParentClass
{
    FXLabel *logoLabel;
}

@property (nonatomic, retain) FXLabel *logoLabel;

@end

我通过改变来解决这个问题

@property (nonatomic, strong) IBOutlet UILabel* logoLabel;
对此

 @property (nonatomic, strong) IBOutlet FXLabel* logoLabel;

添加FXLabel组件后。我为这些错误挠头了好一阵子。

这是头文件中的UILabel。嗯!!