分类 iOS 下的文章


由   YIem   撰写于    浏览:2840  评论:0
OC-不可变字典(NSDictionary) 操作// 不可变字典 创建 NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:@"卞一", @"name", @"男", @"sex", @&quo[...]

由   YIem   撰写于    浏览:2505  评论:0
创建可变数和不可变数组的中文方法// 中文版 NSArray *阿尔 = @[@"AAA"]; NSLog(@"%@", 阿尔); NSLog(@"%ld", 阿尔.count); NSArray *卞一 = @[@"YIem", @"YI", @&[...]

由   YIem   撰写于    浏览:3102  评论:0
可变数组和不可变数组的快速创建-修改-赋值-替换-判断等等NSArray *arr = @[@"aa", @"bb", @"cc", @"dd", @"ff", @"ee", @"gg"]; // 获取数组的[...]

由   YIem   撰写于    浏览:3058  评论:0
可变数组的各种操作// 可变数组 NSMutableArray *mArr = [NSMutableArray arrayWithObjects:@"aaa", @"bbb", @"ccc", @"ddd", @"eee", nil]; // 添加一[...]

由   YIem   撰写于    浏览:2547  评论:0
创建不可变数组,对其的各种操作 // 创建数组 NSArray *arr = @[@"aa", @"bb", @"dd", @"12", @"ff"]; // 获取数组对象个数 NSLog(@"%ld", arr.count);[...]

由   YIem   撰写于    浏览:3536  评论:0
// 1. 创建一个不可变字符串 str // 2. 输出 str 的长度 // 3. 将 str 中的所有 'i' 都替换为 'x' // 4. 比较 str 和 "sample" 字符串的大小, 输出较小的一个. // 5. 将 str 转为可变字符串 mutableStr // 6. 判断 mutableStr 长度, 如[...]

由   YIem   撰写于    浏览:3420  评论:0
// 获取数组的元素个数( 多用于遍历) NSLog(@"array元素个数: %ld", array.count);/// 获取某一个元素NSString *name = [array objectAtIndex:0]; NSLog(@"array获取某一个元素%@", name); // C 语言形式的取[...]

由   YIem   撰写于    浏览:2728  评论:0
/* * 向某个下标插入一个元素(insert) * 删除(delete) * 交换(exchange) */ // 向某个下标插入一个元素 [mutableArr insertObject:@"22" atIndex:2]; NSLog(@"%@", mutableArr); // 删除某个元素 [m[...]

由   YIem   撰写于    浏览:3126  评论:0
iOS 判断Objective-C 字符串是否已i开头 you结尾 NSString *str = [NSString stringWithFormat:@"i Love you"]; [str hasPrefix:@"i"] && [str hasSuffix:@"you&[...]

由   YIem   撰写于    浏览:3861  评论: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[...]

由   YIem   撰写于    浏览:4089  评论: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[...]

由   YIem   撰写于    浏览:4442  评论: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[...]

由   YIem   撰写于    浏览:3812  评论: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[...]

由   YIem   撰写于    浏览:3191  评论: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>[...]

由   YIem   撰写于    浏览:3968  评论: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[...]

由   YIem   撰写于    浏览:3247  评论: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 [...]

由   YIem   撰写于    浏览:3272  评论:0
//// AppDelegate.h// UI11_UITablView综合练习//// Created by YIem on 15/12/21.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@inter[...]

由   YIem   撰写于    浏览:3921  评论:0
//// AppDelegate.h// UI11_练习2//// Created by YIem on 15/12/21.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDel[...]

由   YIem   撰写于    浏览:3728  评论:0
iOS导航栏 添加图片iOS导航栏 添加背景图片UI导航栏 添加图片UI导航栏 添加背景图片[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"bg_nav"] forBarMetrics:0];

由   YIem   撰写于    浏览:3267  评论:0
//// RootViewController.m// UI10_自定义Cell//// Created by Marry W. on 12/18/15.// Copyright (c) 2015 蓝鸥. All rights reserved.//import "RootViewController.h"warning 1.导入cell[...]

由   YIem   撰写于    浏览:3029  评论:0
//// RootViewController.m// UI10_练习//// Created by YIem on 15/12/18.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"import "My[...]

由   YIem   撰写于    浏览:3398  评论:0
//// RootViewController.m// UI10_UITableView2//// Created by Marry W. on 12/18/15.// Copyright (c) 2015 www.lanou3g.com 蓝鸥科技. All rights reserved.//import "RootViewControl[...]

由   YIem   撰写于    浏览:3565  评论:0
//// RootViewController.h// UI9_UITableView练习//// Created by YIem on 15/12/17.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>[...]

由   YIem   撰写于    浏览:3584  评论:0
//// RootViewController.m// UI9_UITableView协议方法//// Created by YIem on 15/12/17.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewControlle[...]

由   YIem   撰写于    浏览:3479  评论:0
//// RootViewController.m// UI9_UITableView//// Created by YIem on 15/12/17.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"[...]