@implementation BViewController
@synthesize mswitch;
@synthesize mbt;
@synthesize lb;
@synthesize xbt;
-(IBAction) myAction:(id)sender{
//mbt.titleLabel.text = @"AAA";
UIView *v = (UIView*)sender;
if (v.tag == 1000) {
UIButton *bt = (UIButton*) sender;
[bt setTitle:@"中国" forState:FALSE]; //forestate 值为true或为false
NSLog(@"tag =1000");
NSLog(@"bt titleis:%@",bt.titleLabel.text);
}else if (v.tag == 2000) {
UISwitch *st = (UISwitch*)sender;
if ([st isOn]) {
NSLog(@"st is on");
}else{
NSLog(@"st is off");
}
}
lb.text = @"LBBBB";
//mtag = lb.tag;
}
/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
*/
// Implement loadView to create a view hierarchy programmatically, without using a nib.
//- (void)loadView {
//
//
//
//}
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[xbt addTarget:self action:@selector(myAction:) forControlEvents:UIControlEventTouchDown];
[super viewDidLoad];
}
分享到:
相关推荐
这是mit jos lab5 的实验记录 单位:华中科技大学集群网络与服务计算实验室 作者:卓达城
JOS LAB1实验记录 MIT jos 课程 作者:卓达城
这是mit jos lab3 的实验记录 单位:华中科技大学集群网络与服务计算实验室 作者:卓达城
这是mit jos lab4 的实验记录 单位:华中科技大学集群网络与服务计算实验室 作者:卓达城
这是mit jos lab2 的实验记录 单位:华中科技大学集群网络与服务计算实验室 作者:卓达城
这是mit jos lab6 的实验记录 单位:华中科技大学集群网络与服务计算实验室 作者:卓达城
JOS 参考文献 全 JOS 参考文献 全 JOS 参考文献 全
京东JOS开放服务介绍
京东jos-php-open-api-sdk-2.0
JOS-PKU-google-Code JOS-PKU-google-Code JOS-PKU-google-Code
mit大学的jos 的操作系统实验 完整的lab3代码
MIT 开设课程操作系统, JOS Lab1更新版详细全部代码。Make grade 满分。注释详细
The JOS Project is a collaborative undertaking by an international group of Java™ programmers and enthusiasts aimed at the creation of a free and open Java™ based Operating System (JOS).
MIT lab1 JOS 实验指导书
JOS教学操作系统LAB1-2的源代码实现,完整得完成了实验内容.
The JOS Project is a collaborative undertaking by an international group of Java™ programmers and enthusiasts aimed at the creation of a free and open Java™ based Operating System (JOS).
JOS讲义实验第3章讲义义
北京大学操作系统课程-JOS讲义(内附JOS讲义与实验报告!!!)
jos的答案 上海交大的操作系统实验 感觉不错
JOS实验北京大学版本-1-6实验 JOS实验北京大学版本-1-6实验