//
//  SelectButton.h
//  JasonDevelop
//
//  Created by Jason Lee on 2013. 12. 16..
//  Copyright (c) jasondevelop. All rights reserved.
//
//  UIButton에 PickerView를 로드하게 만든 커스텀 클래스.
//

@import UIKit;
//#import "OSObject.h"
#import "SortDictionary.h"
#import "CustomButton.h"

@protocol SelectButtonDelegate <NSObject>

@optional
- (void)didChangedSelectRow:(id)sender selectedIndex:(NSInteger)selectedIndex;
//- (void)didChangedSelect:(id)sender row:(NSInteger)selectedIndex;
- (void)didChangedSelect:(id)sender info:(NSDictionary *)info;

@end

@interface SelectButton : CustomButton

@property (assign, nonatomic) id <SelectButtonDelegate> delegate;
@property (strong, nonatomic) SortDictionary *dataDict;             //DataSource
@property (weak, nonatomic) id selectedValue;          //선택된 Object 반환
@property (weak, nonatomic) id selectedTitle;          //선택된 제목을 반환

- (void)pickerDonePressed:(id)sender;
- (void)pickerCancelPressed:(id)sender;
- (void)reloadDataDict;

@end

@interface SelectListButton : SelectButton

@end
