iOS空间使用之UISwitch
来源:互联网 发布:java什么是线程和进程 编辑:程序博客网 时间:2024/05/16 07:46
1、.h
#import <UIKit/UIKit.h>@interface ViewController : UIViewController- (IBAction)backChange:(id)sender;@end
2、.m
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.}- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated.}- (IBAction)backChange:(id)sender { if ([sender isOn] == YES) { self.view.backgroundColor = [UIColor whiteColor]; }else{ self.view.backgroundColor = [UIColor blackColor]; }}@end
0 0
- iOS空间使用之UISwitch
- IOS之UISwitch使用
- iOS开发之UISwitch控件的使用
- Ios学习之uiswitch的使用
- IOS之自定义UISwitch
- IOS之自定义UISwitch
- iOS 控件之 UISwitch
- iOS学习之UISwitch控件两种使用方…
- iOS学习之UISwitch控件两种使用方…
- iOS开发之UitableViewCell中UISwitch的使用,代理实现
- IOS学习笔记之UISwitch
- ios基本控件之UISwitch
- iOS-UISwitch
- IOS UISwitch
- IOS开发之UISlider以及UIswitch
- iOS-UI-基本控件之UISwitch
- iOS-UI-基本控件之UISwitch
- iOS开发之基础视图— UISwitch
- 【转】Hadoop 操作备忘
- Android系统目录结构详解
- 【转】Hadoop集群的NameNode的备份
- 【转】hbase导入工具Import介绍
- Python urllib的urlretrieve()函数解析
- iOS空间使用之UISwitch
- 【转】hbase导出工具Export介绍
- 【转】修改hadoop的备份系数dfs.replication
- Java不同压缩算法的性能比较
- 【转 】Hadoop datanode添加与删除
- 【转】hadoop 添加删除datanode及tasktracker
- 【译】Nginx的if是如何工作的(How nginx "location if" works )By agentzh
- 路由表的优先原则
- 【转】Nginx关闭日志