RadioButton.h 629 B

12345678910111213141516171819202122232425
  1. //
  2. // RadioButton.h
  3. // RadioButton
  4. //
  5. // Created by ohkawa on 11/03/23.
  6. // Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol RadioButtonDelegate <NSObject>
  10. -(void)radioButtonSelectedAtIndex:(NSUInteger)index inGroup:(NSString*)groupId;
  11. @end
  12. @interface RadioButton : UIView {
  13. NSString *_groupId;
  14. NSUInteger _index;
  15. UIButton *_button;
  16. }
  17. @property(nonatomic,retain)NSString *groupId;
  18. @property(nonatomic,assign)NSUInteger index;
  19. -(id)initWithGroupId:(NSString*)groupId index:(NSUInteger)index;
  20. +(void)addObserverForGroupId:(NSString*)groupId observer:(id)observer;
  21. @end