我从UIView
创建了一个子类#import <UIKit/UIKit.h>
@interface MeeSelectDropDownView : UIView {
UILabel *mainText;
UIImage *bgImg;
UIImageView *bgView;
UIImageView *originView;
NSMutableArray *labelArray;
int selectedItem;
BOOL inSelectTag;
float _defaultHeight;
}
@property (nonatomic , retain) UIImage *bgImg;
@property (nonatomic , retain) UIImageView *bgView;
@property (nonatomic , retain) NSMutableArray *labelArray;
@property (nonatomic , retain) UIImageView *originView;
@property (nonatomic , retain) UILabel *mainText;
@property (nonatomic , readonly) int selectedItem;
- (void) setViewHeight:(float)aheight;
-(void) showDropList;
-(void) hiddenDropList;
-(void) setStringByArray:(NSArray*)array;
-(void)hiddenLabels
{
for(UILabel *aLabel in labelArray){
[aLabel removeFromSuperview];
}
}
是否可以从函数'hiddenLabels'生成一个事件来通知并做一些事情
由于
InterDev中
答案 0 :(得分:0)
目前还不清楚你要做什么。
建议:您可以考虑发布NSNotification
,或使用KVO(键值观察)注册观察员。