自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (6)
  • 收藏
  • 关注

原创 07-应用管理(字典转模型)

//// ViewController.m// 07-应用管理//// Created by yibooo on 16/1/31.// Copyright © 2016年 yibo_o. All rights reserved.//#import "ViewController.h"#import "App.h"@interface ViewController ()

2016-02-01 10:22:31 279

原创 06-TOM汤姆猫

// // ViewController.m // 06-TOM汤姆猫 // // Created by yibooo on 16/1/17. // Copyright © 2016年 yibooo. All rights reserved. //import “ViewController.h”@interface ViewController ()@property (wea

2016-01-17 19:20:56 58060

原创 05-图片浏览器

05-图片浏览器 源码下载//// ViewController.m// 05-图片浏览器//// Created by yibooo on 16/1/17.// Copyright © 2016年 yibooo. All rights reserved.///* strong: 一般对象 weak: UI 控件 */#define kIconKey @"icon"#im

2016-01-17 13:16:43 254

原创 04-transform

04-transform 源码下载//// ViewController.m// 04-transform//// Created by yibooo on 16/1/15.// Copyright © 2016年 yibooo. All rights reserved.//#import "ViewController.h"@interface ViewController (

2016-01-15 22:50:00 189

原创 03-QQ登录界面

03-QQ登录界面-源码下载//// ViewController.m// 03-QQ登录界面//// Created by yibooo on 16/1/14.// Copyright © 2016年 yibooo. All rights reserved.//#import "ViewController.h"@interface ViewController ()@prop

2016-01-14 22:38:58 306

原创 通过代码创建按钮

通过代码创建按钮 源码 下载“` // // ViewController.m // 02-通过代码创建按钮 // // Created by yibooo on 16/1/14. // Copyright © 2016年 yibooo. All rights reserved. //import “ViewController.h”@interface ViewControl

2016-01-14 22:37:05 199

原创 02-按钮的基本使用(重构)

按钮的基本使用(重构)源码//// ViewController.m// 02-按钮的基本使用//// Created by yibooo on 16/1/13.// Copyright © 2016年 yibooo. All rights reserved.//#import "ViewController.h"@interface ViewController ()// 头像

2016-01-13 23:05:21 182

原创 IOS加法计算器

//// ViewController.m// 01-加法计算器//// Created by yibooo on 16/1/11.// Copyright © 2016年 yibooo. All rights reserved.//#import "ViewController.h"@interface ViewController ()// 第一个文本框@property

2016-01-12 21:10:53 294

转载 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2016-01-12 21:07:47 181

05-图片浏览器.zip

#define kIconKey @"icon" #import "ViewController.h" @interface ViewController () // 当前索引值 @property (nonatomic,assign) int index; //索引标签 @property (weak, nonatomic) IBOutlet UILabel *indexLabel; // 图像数据 @property (nonatomic, strong) NSArray *imageArray; // 图像控件 @property (weak, nonatomic) IBOutlet UIImageView *imageView; // 图像描述 @property (weak, nonatomic) IBOutlet UILabel *dscView; // 上一张按钮控件 @property (weak, nonatomic) IBOutlet UIButton *preBtn; // 下一张按钮控件 @property (weak, nonatomic) IBOutlet UIButton *nextBtn; // 上一张按钮 - (IBAction)previous; // 下一张按钮 - (IBAction)next; @end

2016-01-17

04-transform.zip

// // ViewController.m // 04-transform // // Created by yibooo on 16/1/15. // Copyright © 2016年 yibooo. All rights reserved. // #import "ViewController.h" @interface ViewController () - (IBAction)up; - (IBAction)leftRotate; @end @implementation ViewController - (IBAction)up { // 1.取得头像按钮 UIButton *head = (UIButton *)[self.view viewWithTag:10]; // 2.每次向上移动10距离 head.transform = CGAffineTransformTranslate(head.transform, 0, -10); } - (IBAction)leftRotate { UIButton *head = (UIButton *)[self.view viewWithTag:10]; // 旋转 head.transform = CGAffineTransformRotate(head.transform, -M_PI_4); } @end

2016-01-15

03-QQ登录界面

#import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *qqField; @property (weak, nonatomic) IBOutlet UITextField *pwdField; - (IBAction)login; @end @implementation ViewController - (IBAction)login { NSLog(@"QQ号是:%@, 密码是:%@", self.qqField.text, self.pwdField.text); } @end

2016-01-14

02-通过代码创建按钮

// 1.创建按钮 UIButton *btn = [[UIButton alloc] init]; // 2.添加按钮 [self.view addSubview:btn]; // 3.设置frame btn.frame = CGRectMake(50, 50, 100, 100); // 4.设置背景图片 // 4.1通过文件名加载图片(凡事PNG图片,不用加拓展名) UIImage *normal = [UIImage imageNamed:@"btn_01"]; // 4.2设置普通状态下的背景图片 [btn setBackgroundImage:normal forState:UIControlStateNormal];

2016-01-14

02-按钮的基本使用(重构).zip

@interface ViewController () // 头像 @property (nonatomic, weak) IBOutlet UIButton *head; // 移动 - (IBAction)move:(UIButton *)btn; // 放大 - (IBAction)big; // 缩小 - (IBAction)small; @end

2016-01-13

01-加法计算器

简单的加法计算器。 //计算 - (IBAction) caculate { // 取出文本框的内容 NSString * num1Text = self.num1TextField.text; NSString * num2Text = self.num2TextField.text; // 把字符串转换为int类型 NSInteger result = num1Text.intValue + num2Text.intValue; // 改变文本框的值 self.resultLabel.text = [NSString stringWithFormat:@"%ld", (long)result]; // 退出键盘 // [self.num1TextField resignFirstResponder]; // [self.num2TextField resignFirstResponder]; // 只要是自己或自己的子控件呼叫出来的键盘,都可以通过这个方法来退出键盘 [self.view endEditing:YES]; }

2016-01-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除