YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!
首页
关于
关键字
2016
的文章
iOS-UI- SetViewController-抽屉效果
由 YIem 撰写于
2016-01-18
浏览:4507 评论:0
SetViewController *setVC = [[SetViewController alloc]init];// 注意坐标设置 setVC.view.frame = CGRectMake(-150, 0, 150, self.view.frame.size.height); [self addChildViewControll[...]
iOS-UI-UISegmentedControl-分段控制器
由 YIem 撰写于
2016-01-18
浏览:3985 评论:0
self.seg = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"界面1", @"界面2", @"界面3", nil]];self.seg.frame = CGRectMake(100, 100, 200, 30); // 起始选中状态 self.seg[...]
iOS-UI -UIAlertAction-UIAlertController-提示框 警告-窗口弹出
由 YIem 撰写于
2016-01-18
浏览:5488 评论:0
// 提示框 // 提示框的样式只有两种 中间 下方 UIAlertController *alertC = [UIAlertController alertControllerWithTitle:@"注意" message:@"你是傻逼" preferredStyle:UIAlertControllerS[...]
iOS-UI-容器视图控制器
由 YIem 撰写于
2016-01-18
浏览:3581 评论:0
// 容器视图控制器 self.secondVC = [[SecondViewController alloc] init]; // 将VC添加的原因 // 1. 事件沿VC传递 // 2. 防止VC释放而所属View未释放 [self addChildViewController:self.secondVC]; [self.view addS[...]
iOS-UI-NSUserDefaults-简单信息存储数据到本地
由 YIem 撰写于
2016-01-18
浏览:3532 评论:0
NSUserDefaults 是全局变量 简单信息存储数据到本地// 用来向本地存储一些简单信息 NSUserDefaults *userD = [NSUserDefaults standardUserDefaults]; // 存入BOOL类型数据 [userD setBool:YES forKey:@"isLogin"];[...]
iOS-UI-Button按钮自定义图标-图片样式切换
由 YIem 撰写于
2016-01-18
浏览:3024 评论:0
iOS-UI-Button按钮自定义图标-图片样式切换 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];button.frame = CGRectMake(100, 300, 200, 50); // 正常状态 [button setBackgroundImage[...]
iOS-UI-活动界面铺设
由 YIem 撰写于
2016-01-18
浏览:3332 评论:0
VC.m#import "ActivityDetailViewController.h"import "ActivityDetailView.h"@interface ActivityDetailViewController ()@end@implementation ActivityDetailViewController
iOS-UI_UIImageView-的部分代码操作-图片播放-播放次数-播放时间-开始播放
由 YIem 撰写于
2016-01-14
浏览:2993 评论:0
// 图片UIImageView UIImageView *imageV = [[UIImageView alloc] initWithFrame:self.view.frame]; // 设置图片 imageV.image = [UIImage imageNamed:@"BackGround"]; [self[...]
iOS-UI-UIButton的部分操作代码-标题-前景图-背景图-渲染-Button方法
由 YIem 撰写于
2016-01-14
浏览:3828 评论:0
// 按钮 button UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.frame = CGRectMake(100, 300, 50, 30);// button.backgroundColor = [UIColor redColor];//[...]
iOS-UI-UITextField-的部分操作代码-密文输入-消除按钮-键盘样式-边框样式
由 YIem 撰写于
2016-01-14
浏览:4288 评论:0
//***// 文本输入框 - YIem的博客 // command + k 调出键盘 // command + shift + k 关联物理键盘 UITextField *field = [[UITextField alloc] initWithFrame:CGRectMake(label.frame.origin.x, label.frame.[...]
iOS-UI- UILabel的部分操作代码-字体大小-对齐方式-行数-阴影等等
由 YIem 撰写于
2016-01-14
浏览:3745 评论:0
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(50, 50, 300, 50)]; // 设置文字内容 label.text = @"YIem 的博客"; // 设置文字颜色 label.textColor = [UIColor greenColor]; /[...]
iOS-UI-用for循环铺各色小方块
由 YIem 撰写于
2016-01-14
浏览:3258 评论:0
iOS-UI-用for循环铺各色小方块for (CGFloat i = 0; i < 375; i+= 75) { for (CGFloat j = 0; j < 667; j+=83.375) { UIView *view = [[UIView alloc] initWithFrame:CGRectMake(i[...]
iOS- UIView的基本操作-代码
由 YIem 撰写于
2016-01-14
浏览:3864 评论:0
// 随机颜色 view1.backgroundColor = [UIColor colorWithRed:arc4random() % 256 / 255.0 green:arc4random() % 256 / 255.0 blue:arc4random() % 256 / 255.0 alpha:1]; // 单独改变frame view[...]
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf的代码-self方法
由 YIem 撰写于
2016-01-14
浏览:3624 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf的代码// 把Text写成属性(延展)@property (nonatomic, retain) UITextField *field1;@property (nonatomic, retain) UITextField *field2;// 键盘回收(第一个UITextF[...]
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf
由 YIem 撰写于
2016-01-14
浏览:3866 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf#import "ViewController.h" @interface ViewController ()<UITextFieldDelegate>@property (nonatomic, retain) UITextField *fi[...]
iOS-植物大战僵尸-UIVIew-UIImageView-
由 YIem 撰写于
2016-01-14
浏览:2996 评论:0
iOS-植物大战僵尸-UIVIew-UIImageView-#import "ViewController.h" @interface ViewController ()@end@implementation ViewController(void)viewDidLoad {[super viewDidLoad];// Do a[...]
iOS-TOM猫-汤姆猫动画播放-UIImageVIew
由 YIem 撰写于
2016-01-14
浏览:3771 评论:0
iOS-TOM猫-汤姆猫动画播放-UIImageVIew#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UIImageView *img;@end@implementation ViewController([...]
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色
由 YIem 撰写于
2016-01-13
浏览:3898 评论:0
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色写在ViewController.m
OC-协议代理-模拟return点击事件
由 YIem 撰写于
2016-01-12
浏览:5027 评论:0
main.m#import <Foundation/Foundation.h>import "System.h"import "Developer.h"int main(int argc, const char * argv[]) {// 协议代理// 模拟点击环境 Developer *dev = [[Developer alloc][...]
OC-通讯录-分组-删除-判断 重新setter getter
由 YIem 撰写于
2016-01-09
浏览:3652 评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]
OC-* 实现图书管理系统:数组可以添加、删除可以从数组根据书名查找书籍,并修改书籍的价格
由 YIem 撰写于
2016-01-09
浏览:3363 评论:0
main.m/* 实现图书管理系统: 1、使⽤数组管理所有书籍。 2、数组可以添加、删除。 3、可以从数组根据书名查找书籍,并修改书籍的价格。 4、展⽰所有书籍清单(书名)。*/ // 创建 对象Book *book1 = [Book bookWithBookName:@"YIem" price:20]; Book *b[...]
OC-Block-定义一个block,返回值为BOOL,有两个NSString参数。实现:判断字符串是否相等
由 YIem 撰写于
2016-01-09
浏览:5341 评论:0
/*定义一个block,返回值为BOOL,有两个NSString参数。实现:判断字符串是否相等。*/ if 1 BOOL (^block)(NSString *a, NSString *b) = ^BOOL(NSString *a, NSString *b) { // return [a compare:b];[...]
OC-KVC--就字典中的内容按照key值 对应的写入对象中
由 YIem 撰写于
2016-01-08
浏览:3066 评论:0
.main.m文件/* 定义Student类 1、属性有age,name,gender; 2、age使⽤用assign,name使⽤用retain,gender使⽤用copy; 3、重写age、name、gender的setter和getter⽅方法。 */if 0 Student *stu = [[Stude[...]
OC-Block-定义一个block 无返回值 无参数
由 YIem 撰写于
2016-01-08
浏览:3886 评论:0
// block // 定义一个block 无返回值 无参数 void (^block1)(void) = ^(void) { NSLog(@"甜甜"); }; // 调用一个block block1(); NSInteger (^block2[...]
OC-不同类型转换-整型转NSString-NSString转整型
由 YIem 撰写于
2016-01-08
浏览:2749 评论:0
///************* 不同类型转换 ****** // 整型转NSString int a = 3; NSString *str = [NSString stringWithFormat:@"%d", a]; NSLog(@"%@", str); // NS[...]
1
...
9
10
11
12
Yiem
心比天高,命比纸薄。
文章
1281
评论
163
分类
16
标签
1281
页面
1
浏览
1281
随机文章
最近喜欢上了后摇, ...
全站SSL 测试
古墓丽影:源起之战
HYLO FRESH-HYLO EY ...
如何屏蔽360搜索引擎 ...
#年付25美元VPS#Hos ...
【已经跑路】#年付7 ...
NFPHosting洛杉矶、 ...
人的记忆有几多秒? ...
【苹果税降低】Appl ...
Tags
ios(119)
便宜vps(119)
洛杉矶vps(106)
美国vps(105)
vps(97)
ios开发(91)
KVM VPS(89)
过年(77)
PayPal购买VPS(73)
洛杉矶便宜VPS(72)
还有多少天过年(71)
春节(64)
最新文章
Hostdare 年付1...
RackNerd 优惠,...
11美元一年VPS,1H...
Apple Develo...
HostDare 年付2...
搬瓦工上新了 年付$46...
DediPath 跑路了...
HostDare 中国优...
丽萨主机 - 199元人...
Mondoze: 马来西...
最新评论
YIem
:
安装完可以删除
绝对小白菜
:
下载好的Window[...]
啊鱼竿哦哦哦
:
哈哈哈
YIem
:
这辆车 怎么样呢? [...]
frrrrr
:
hao
Links
帮助教程
HelpDocsHub
ipv6测试
个人博客
赵容部落
Typecho主题模版