//
// RadioButton.h
// UIRadioButton
//
// Created by chen shaohong on 12-9-29.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
//Protocol协议 ,声明了可以被任何类实现的方法
@protocol RadioButtonDelegate <NSObject>
-(void)radioButtonSelectedAtIndex:(NSUInteger)index inGroup:(NSString*)groupId;
@end
//创建RadioButton继承UIView,里边有radio的组id,radio的索引,radio用到的自定义类型的Button
@interface RadioButton :UIView {
NSString *_groupId;
NSUInteger _index;
UIButton *_button;
}
//RadioButton的属性
@property(nonatomic,retain)NSString *groupId;
@property(nonatomic,assign)NSUInteger index;
//initWithGroupId始化(将每一个button添加到静态数组rb_instances中)方法
//addObserverForGroupId添加radio分组对象到静态字典rb_observers中的方法
-(id)initWithGroupId:(NSString*)groupId index:(NSUInteger)index;
+(void)addObserverForGroupId:(NSString*)groupId observer:(id)observer;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iphone 开发基础控件自定义UIButton之UIRadioButton
共58个文件
png:10个
pbxbtree:8个
hmap:5个
4星 · 超过85%的资源 需积分: 15 114 下载量 146 浏览量
2012-09-30
18:59:30
上传
评论 1
收藏 526KB RAR 举报
温馨提示
iphone中的基础控件UIButton扩展,自定义UIRadioButton, 适合初学者,主要学习自定义UIRadioButton的常用属性设置、点击事件等
资源推荐
资源详情
资源评论
收起资源包目录
UIRadioButton.rar (58个子文件)
UIRadioButton
radio_nor.png 1KB
main.m 368B
UIRadioButton_Prefix.pch 195B
UIRadioButton-Info.plist 917B
._.DS_Store 4KB
UIRadioButtonViewController.xib 6KB
imgUnselected.png 697B
.DS_Store 6KB
icon.png 6KB
UIRadioButton.xcodeproj
chenshaohong.mode1v3 40KB
project.pbxproj 13KB
chenshaohong.pbxuser 6KB
imgSelected.png 845B
Classes
UIRadioButtonAppDelegate.m 649B
RadioButton.h 1023B
UIRadioButtonViewController.h 379B
UIRadioButtonViewController.m 3KB
RadioButton.m 5KB
UIRadioButtonAppDelegate.h 516B
radio_check.png 2KB
MainWindow.xib 9KB
build
UIRadioButton.build
Debug-iphonesimulator
UIRadioButton.build
UIRadioButton-all-target-headers.hmap 793B
UIRadioButton.hmap 2KB
UIRadioButton.dep 4KB
build-state.dat 34KB
UIRadioButton~.dep 3KB
UIRadioButton-own-target-headers.hmap 793B
build-state~.dat 39KB
Objects-normal
i386
RadioButton.o 24KB
UIRadioButtonViewController.o 37KB
UIRadioButton.LinkFileList 646B
main.o 6KB
UIRadioButtonAppDelegate.o 37KB
UIRadioButton-project-headers.hmap 1007B
UIRadioButton-generated-files.hmap 121B
UIRadioButton.pbxindex
subclasses.pbxbtree 1KB
categories.pbxbtree 1KB
symbols0.pbxsymbols 527KB
files.pbxbtree 3KB
protocols.pbxbtree 1KB
imports.pbxbtree 7KB
decls.pbxbtree 120KB
cdecls.pbxbtree 120KB
refs.pbxbtree 93KB
pbxindex.header 24B
strings.pbxstrings
control 256KB
strings 250KB
Debug-iphonesimulator
UIRadioButton.app
radio_nor.png 1KB
UIRadioButtonViewController.nib 1KB
UIRadioButton 27KB
imgUnselected.png 697B
MainWindow.nib 1KB
icon.png 6KB
PkgInfo 8B
imgSelected.png 845B
radio_check.png 2KB
UIRadioButton.app.dSYM
Contents
Resources
DWARF
UIRadioButton 66KB
Info.plist 597B
共 58 条
- 1
chhosh
- 粉丝: 1
- 资源: 36
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页