YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!
首页
关于
关键字
me
的文章
iOS-UI-UIButton的部分操作代码-标题-前景图-背景图-渲染-Button方法
由 YIem 撰写于
2016-01-14
浏览:3287 评论: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
浏览:3843 评论: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
浏览:3302 评论: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
浏览:2784 评论: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
浏览:3200 评论: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
浏览:3230 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf的代码// 把Text写成属性(延展)@property (nonatomic, retain) UITextField *field1;@property (nonatomic, retain) UITextField *field2;// 键盘回收(第一个UITextF[...]
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf
由 YIem 撰写于
2016-01-14
浏览:3401 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf#import "ViewController.h" @interface ViewController ()<UITextFieldDelegate>@property (nonatomic, retain) UITextField *fi[...]
iOS-植物大战僵尸-UIVIew-UIImageView-
由 YIem 撰写于
2016-01-14
浏览:2595 评论: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
浏览:3374 评论: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
浏览:3264 评论:0
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色写在ViewController.m
OC-协议代理-模拟return点击事件
由 YIem 撰写于
2016-01-12
浏览:4563 评论:0
main.m#import <Foundation/Foundation.h>import "System.h"import "Developer.h"int main(int argc, const char * argv[]) {// 协议代理// 模拟点击环境 Developer *dev = [[Developer alloc][...]
Objective-C考试-OC考试题-选择题-判断题
由 YIem 撰写于
2016-01-11
浏览:4228 评论:0
Objective-C考试- 蓝鸥3G-OC考试题 ※ 选择题(共40题,每题2分) 1、NSString *str = @“lanou”; [str retain]; [str autorelease]; 此时str的引用计数是________。 答案:(D) A、0 B、1 C、2 D、以上[...]
OC-通讯录-分组-删除-判断 重新setter getter
由 YIem 撰写于
2016-01-09
浏览:3186 评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]
OC-* 实现图书管理系统:数组可以添加、删除可以从数组根据书名查找书籍,并修改书籍的价格
由 YIem 撰写于
2016-01-09
浏览:2882 评论:0
main.m/* 实现图书管理系统: 1、使⽤数组管理所有书籍。 2、数组可以添加、删除。 3、可以从数组根据书名查找书籍,并修改书籍的价格。 4、展⽰所有书籍清单(书名)。*/ // 创建 对象Book *book1 = [Book bookWithBookName:@"YIem" price:20]; Book *b[...]
OC-KVC--就字典中的内容按照key值 对应的写入对象中
由 YIem 撰写于
2016-01-08
浏览:2633 评论: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-内存管理-重写系统调用的释放方法
由 YIem 撰写于
2016-01-08
浏览:2577 评论:0
// 重写系统调用的释放方法// 以后在mrc下 如果定义了retian/copy的属性// 都需要重写dealloc方法 并将其release在此处(void)dealloc{// getter的autorelease回引起延时减 1 // [self.name release]; [_name release]; [super dealloc];}
OC-排序-简单类型对象的排序-复杂类型对象的排序
由 YIem 撰写于
2016-01-07
浏览:3177 评论:0
/********* 方法2 简单类型对象的排序 ************/if 0// 创建排序对象 // 参数1 - 为简单类型对象可填写nil/@"self" // 为复杂类型对象可填写要进行排序的关键字, 如 按照Person的name成员排序 可填写@"name"; //参数2 [...]
OC-排序-自定义类型对象的排序
由 YIem 撰写于
2016-01-07
浏览:2610 评论:0
.main.m 代码 /********** 自定义类型对象的排序 *****************/ Person *per1 = [[Person alloc] initWithName:@"Long" age:22]; Person *per2 = [[Person alloc] initWithName:@[...]
OC-集合- 集合 - 集合的元素具有唯一性-常用于判断交/并集等操作
由 YIem 撰写于
2016-01-07
浏览:2975 评论:0
// 集合 - 集合的元素具有唯一性 // 常用于判断交/并集等操作 /// 不可变集合// 创建集合 // 如果有重复元素 只保留一个 eg;@"2", @"2" NSSet *set = [NSSet setWithObjects:@"1",@"2" , @[...]
OC- 字典套数组 -- 省市区
由 YIem 撰写于
2016-01-07
浏览:6117 评论:0
OC- 字典套数组 -- 省市区// 获取文件 NSString *str = [NSString stringWithContentsOfFile:@"area.txt" encoding:NSUTF8StringEncoding error:nil]; // 按\n截取 NSArray *line = [str compon[...]
OC-字典-省市区-省数组套省字典套市数组套市字典套区数组
由 YIem 撰写于
2016-01-06
浏览:3159 评论:0
省市区OC-字典-省市区-省数组套省字典套市数组套市字典套区数组数据文件:省市区TXT(数据)文件 NSString *str = [NSString stringWithContentsOfFile:@"area.txt" encoding:NSUTF8StringEncoding error:nil]; NSLog(@&qu[...]
OC-字典--添加 修改 删除 查询等等
由 YIem 撰写于
2016-01-05
浏览:2651 评论:0
分别有三个文件.mian.mint main(int argc, const char * argv[]) { // 创建学生 Student *stu1 = [[Student alloc]initWithName:@"卞一" sex:@"男" age:@"20"]; Student [...]
OC-可变字典(NSMutableDictionary)操作
由 YIem 撰写于
2016-01-05
浏览:2396 评论:0
OC-可变字典(NSMutableDictionary)操作// 可变字典创建 NSMutableDictionary *mdic = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"卞一", @"name", @"男", @&quo[...]
OC-不可变字典(NSDictionary) 操作
由 YIem 撰写于
2016-01-05
浏览:2444 评论:0
OC-不可变字典(NSDictionary) 操作// 不可变字典 创建 NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:@"卞一", @"name", @"男", @"sex", @&quo[...]
创建不可变数组,对其的各种操作,取值赋值
由 YIem 撰写于
2016-01-05
浏览:2203 评论:0
创建不可变数组,对其的各种操作 // 创建数组 NSArray *arr = @[@"aa", @"bb", @"dd", @"12", @"ff"]; // 获取数组对象个数 NSLog(@"%ld", arr.count);[...]
1
...
9
10
11
12
13
14
Yiem
心比天高,命比纸薄。
文章
1267
评论
163
分类
16
标签
1267
页面
1
浏览
1267
随机文章
超级爱这一张图,不 ...
2015-11-12 -C3_循环 ...
2015-12-04// OC_9 ...
2015-12-07 OC obj ...
2018年新春快乐,狗 ...
今天是2016年11月07 ...
今天是2016年11月21 ...
AppStore上架应用程 ...
200000Q/S的意思
BandwagonHost香港直 ...
Tags
ios(119)
便宜vps(115)
洛杉矶vps(105)
美国vps(103)
vps(94)
ios开发(91)
KVM VPS(88)
过年(77)
PayPal购买VPS(73)
洛杉矶便宜VPS(72)
还有多少天过年(71)
春节(64)
最新文章
今天发现 AFNetwo...
一年一度的WWDC23将...
1TB储存形VPS年付3...
周总理诞辰125周年
DesiVPS 最新优惠...
关于Bitcode的弃用
记录:张狗逼日常事
记录下这个吃人事件:“郑...
Ask Apple - ...
360搜索这几天又犯病了
最新评论
YIem
:
安装完可以删除
绝对小白菜
:
下载好的Window[...]
啊鱼竿哦哦哦
:
哈哈哈
YIem
:
这辆车 怎么样呢? [...]
frrrrr
:
hao
Links
帮助教程
ipv6测试
个人博客
赵容部落
Typecho主题模版