YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!
首页
关于
关键字
s
的文章
OC-排序-简单类型对象的排序-复杂类型对象的排序
由 YIem 撰写于
2016-01-07
浏览:3675 评论:0
/********* 方法2 简单类型对象的排序 ************/if 0// 创建排序对象 // 参数1 - 为简单类型对象可填写nil/@"self" // 为复杂类型对象可填写要进行排序的关键字, 如 按照Person的name成员排序 可填写@"name"; //参数2 [...]
OC-排序-自定义类型对象的排序
由 YIem 撰写于
2016-01-07
浏览:3070 评论:0
.main.m 代码 /********** 自定义类型对象的排序 *****************/ Person *per1 = [[Person alloc] initWithName:@"Long" age:22]; Person *per2 = [[Person alloc] initWithName:@[...]
OC-排序-简单对象的排序-OC排序
由 YIem 撰写于
2016-01-07
浏览:2910 评论:0
/*************** 简单对象的排序 *****************/ // 排序 可变数组NSMutableArray *arr = [NSMutableArray arrayWithObjects:@"8", @"2", @"3", @"5", [...]
OC-集合- 集合 - 集合的元素具有唯一性-常用于判断交/并集等操作
由 YIem 撰写于
2016-01-07
浏览:3440 评论:0
// 集合 - 集合的元素具有唯一性 // 常用于判断交/并集等操作 /// 不可变集合// 创建集合 // 如果有重复元素 只保留一个 eg;@"2", @"2" NSSet *set = [NSSet setWithObjects:@"1",@"2" , @[...]
OC- 字典套数组 -- 省市区
由 YIem 撰写于
2016-01-07
浏览:6602 评论:0
OC- 字典套数组 -- 省市区// 获取文件 NSString *str = [NSString stringWithContentsOfFile:@"area.txt" encoding:NSUTF8StringEncoding error:nil]; // 按\n截取 NSArray *line = [str compon[...]
OC-字典-省市区-省数组套省字典套市数组套市字典套区数组
由 YIem 撰写于
2016-01-06
浏览:3625 评论:0
省市区OC-字典-省市区-省数组套省字典套市数组套市字典套区数组数据文件:省市区TXT(数据)文件 NSString *str = [NSString stringWithContentsOfFile:@"area.txt" encoding:NSUTF8StringEncoding error:nil]; NSLog(@&qu[...]
OC-字典--添加 修改 删除 查询等等
由 YIem 撰写于
2016-01-05
浏览:3143 评论:0
分别有三个文件.mian.mint main(int argc, const char * argv[]) { // 创建学生 Student *stu1 = [[Student alloc]initWithName:@"卞一" sex:@"男" age:@"20"]; Student [...]
OC-可变字典(NSMutableDictionary)操作
由 YIem 撰写于
2016-01-05
浏览:2856 评论:0
OC-可变字典(NSMutableDictionary)操作// 可变字典创建 NSMutableDictionary *mdic = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"卞一", @"name", @"男", @&quo[...]
OC-不可变字典(NSDictionary) 操作
由 YIem 撰写于
2016-01-05
浏览:2873 评论:0
OC-不可变字典(NSDictionary) 操作// 不可变字典 创建 NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:@"卞一", @"name", @"男", @"sex", @&quo[...]
创建可变数和不可变数组的中文创建方法
由 YIem 撰写于
2016-01-05
浏览:2543 评论:0
创建可变数和不可变数组的中文方法// 中文版 NSArray *阿尔 = @[@"AAA"]; NSLog(@"%@", 阿尔); NSLog(@"%ld", 阿尔.count); NSArray *卞一 = @[@"YIem", @"YI", @&[...]
可变数组和不可变数组的快速创建-修改-赋值-替换-判断等等
由 YIem 撰写于
2016-01-05
浏览:3133 评论:0
可变数组和不可变数组的快速创建-修改-赋值-替换-判断等等NSArray *arr = @[@"aa", @"bb", @"cc", @"dd", @"ff", @"ee", @"gg"]; // 获取数组的[...]
可变数组的各种操作,添加-修改-删除-替换
由 YIem 撰写于
2016-01-05
浏览:3096 评论:0
可变数组的各种操作// 可变数组 NSMutableArray *mArr = [NSMutableArray arrayWithObjects:@"aaa", @"bbb", @"ccc", @"ddd", @"eee", nil]; // 添加一[...]
创建不可变数组,对其的各种操作,取值赋值
由 YIem 撰写于
2016-01-05
浏览:2581 评论:0
创建不可变数组,对其的各种操作 // 创建数组 NSArray *arr = @[@"aa", @"bb", @"dd", @"12", @"ff"]; // 获取数组对象个数 NSLog(@"%ld", arr.count);[...]
OC 数组 创建字符串- 长度- 替换- 比较- 转换-判断
由 YIem 撰写于
2016-01-04
浏览:3567 评论:0
// 1. 创建一个不可变字符串 str // 2. 输出 str 的长度 // 3. 将 str 中的所有 'i' 都替换为 'x' // 4. 比较 str 和 "sample" 字符串的大小, 输出较小的一个. // 5. 将 str 转为可变字符串 mutableStr // 6. 判断 mutableStr 长度, 如[...]
OC 不可变数组的 方法集合
由 YIem 撰写于
2016-01-04
浏览:3449 评论:0
// 获取数组的元素个数( 多用于遍历) NSLog(@"array元素个数: %ld", array.count);/// 获取某一个元素NSString *name = [array objectAtIndex:0]; NSLog(@"array获取某一个元素%@", name); // C 语言形式的取[...]
OC * 向某个下标插入一个元素(insert) * 删除(delete) * 交换(exchange)
由 YIem 撰写于
2016-01-04
浏览:2765 评论:0
/* * 向某个下标插入一个元素(insert) * 删除(delete) * 交换(exchange) */ // 向某个下标插入一个元素 [mutableArr insertObject:@"22" atIndex:2]; NSLog(@"%@", mutableArr); // 删除某个元素 [m[...]
iOS 判断Objective-C 字符串是否已i开头 you结尾
由 YIem 撰写于
2016-01-04
浏览:3167 评论:0
iOS 判断Objective-C 字符串是否已i开头 you结尾 NSString *str = [NSString stringWithFormat:@"i Love you"]; [str hasPrefix:@"i"] && [str hasSuffix:@"you&[...]
迟来的新年祝福,2016年我要好好的
由 YIem 撰写于
2016-01-03
浏览:3778 评论:0
迟来的新年祝福,2016年我要好好的
2015-12-24-Xib Xib 使用
由 YIem 撰写于
2015-12-24
浏览:3891 评论:0
//// AppDelegate.h// UI14_Xib//// Created by YIem on 15/12/24.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDel[...]
Block传值Block传值Block传值Block传值
由 YIem 撰写于
2015-12-24
浏览:4136 评论:0
//// AppDelegate.h// UI13_Block传值//// Created by YIem on 15/12/23.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface Ap[...]
2015-12-24-TableView 数组
由 YIem 撰写于
2015-12-24
浏览:4473 评论:0
//// AppDelegate.h// UI13_练习//// Created by YIem on 15/12/23.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDele[...]
2015-12-24-TavleView编辑
由 YIem 撰写于
2015-12-24
浏览:3852 评论:0
//// AppDelegate.h// UI12_TavleView编辑//// Created by YIem on 15/12/22.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interfac[...]
2015-12-24-UITableVIewController
由 YIem 撰写于
2015-12-24
浏览:3231 评论:0
//// AppDelegate.h// UI12_UITableVIewController//// Created by YIem on 15/12/22.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>[...]
2015-12-24-RegisterCell注册cell重用池
由 YIem 撰写于
2015-12-24
浏览:4016 评论:0
//// AppDelegate.h// UI12_RegisterCell//// Created by YIem on 15/12/22.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interfa[...]
2015-12-24-UI12_限时练习
由 YIem 撰写于
2015-12-24
浏览:3290 评论:0
//// AppDelegate.h// UI12_限时练习//// Created by Marry W. on 15/12/22.// Copyright © 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.//import <UIKit/UIKit.h>@interface [...]
1
...
42
43
44
45
46
...
49
Yiem
心比天高,命比纸薄。
文章
1282
评论
163
分类
16
标签
1282
页面
1
浏览
1282
随机文章
请慎重考虑是否购买 ...
单纯的来几张图(一 ...
今天是2016年11月01 ...
今天是2016年12月27 ...
今天是2016年12月29 ...
今天是除夕、非常不 ...
HostMyBytes美国VPS ...
央视新闻报道-苹果应 ...
Object-C和Swift混编 ...
App Store免费赠送1 ...
Tags
ios(119)
便宜vps(119)
洛杉矶vps(106)
美国vps(105)
vps(97)
ios开发(91)
KVM VPS(89)
过年(77)
PayPal购买VPS(73)
洛杉矶便宜VPS(72)
还有多少天过年(71)
春节(64)
最新文章
便宜在线ChatGPT网...
Hostdare 年付1...
RackNerd 优惠,...
11美元一年VPS,1H...
Apple Develo...
HostDare 年付2...
搬瓦工上新了 年付$46...
DediPath 跑路了...
HostDare 中国优...
丽萨主机 - 199元人...
最新评论
YIem
:
安装完可以删除
绝对小白菜
:
下载好的Window[...]
啊鱼竿哦哦哦
:
哈哈哈
YIem
:
这辆车 怎么样呢? [...]
frrrrr
:
hao
Links
帮助教程
HelpDocsHub
ipv6测试
个人博客
赵容部落
Typecho主题模版