0
使用UIGlassButton我想在我的iPhone應用程序使用UIGlassButton,我在我的視圖控制器下面的代碼:不能在iOS4的
UIGlassButton *myButton = [[UIGlassButton alloc] initWithFrame:CGRectMake(2,2,316,50)];
[myButton addTarget:self action:@selector(myFunction:) forControlEvents:UIControlEventTouchDown];
[myButton setTitle:@"Neat button!" forState:UIControlStateNormal];
[myButton setTintColor:[UIColor colorWithWhite:0.20f alpha:1]];
[self.view addSubview:myButton];
我增加了指令@class UIGlassButton;在視圖控制器的頭文件中,但我結束了以下錯誤:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_UIGlassButton", referenced from:
objc-class-ref in ControlViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status