【发布时间】:2012-03-25 08:03:22
【问题描述】:
我的FooterSelectorView.h 遇到两个问题,我不知道为什么。一个是警告,另一个是错误。出于某种原因,xcode 无法识别FooterArchiveItemView,因此我无法将我的对象键入为导致其他问题的对象。有没有人见过这样的东西?我该如何解决?
FooterSelectorView.h
#import <UIKit/UIKit.h>
#import "FooterArchiveItemView.h"
@interface FooterSelectorView : UIImageView
// #warning Type of property 'activeItem' does not match type of accessor 'setActiveItem:'
@property (nonatomic, retain) FooterArchiveItemView *activeItem;
// #error Expected a type
- (void)setActiveItem:(FooterArchiveItemView *)activeItem_;
- (void)update;
- (CGPoint)absoluteCenterOf:(UIView *)obj;
@end
相关类
FooterArchiveItemView.h
#import <UIKit/UIKit.h>
#import "AutosizeableView.h"
#import "FooterArchiveView.h"
typedef void (^ DayBlock)(void);
@interface FooterArchiveItemView : AutosizeableView {
DayBlock dayBlock;
}
@property (nonatomic, retain) IBOutlet UIButton *day;
@property (nonatomic, retain) IBOutlet UIImageView *bullet;
- (void)setDayBlock:(DayBlock)block;
@end
AutosizeableView.h
#import <UIKit/UIKit.h>
@interface AutosizeableView : UIView
@end
【问题讨论】: