YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!
首页
关于
关键字
int
的文章
iOS-UI_TableView- 行高-头部高度-脚部高度
由 YIem 撰写于
2016-01-23
浏览:4602 评论:0
// 高度控制// 行高(CGFloat)tableView:(UITableView )tableView heightForRowAtIndexPath:(NSIndexPath )indexPath{ return 100;}// 头部高度(CGFloat)tableView:(UITableView *)tableView heightF[...]
iOS-UI_TableView-自定义头部区域-自定义脚部区域
由 YIem 撰写于
2016-01-23
浏览:4300 评论:0
// 自定义头部区域(UIView )tableView:(UITableView )tableView viewForHeaderInSection:(NSInteger)section{ UIView *header = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];[...]
iOS-UI-分区头-分区脚名称设置
由 YIem 撰写于
2016-01-23
浏览:4086 评论:0
// 分区头名称(NSString )tableView:(UITableView )tableView titleForHeaderInSection:(NSInteger)section{ return @"头头头";}// 分区脚部名称(NSString )tableView:(UITableView )tableView titleFor[...]
iOS-UI-导航视图控制器-UINavigationController-部分属性
由 YIem 撰写于
2016-01-20
浏览:3798 评论:0
// 前景色 navigation.navigationBar.barTintColor = [UIColor cyanColor]; // 背景色// navigation.navigationBar.backgroundColor = [UIColor cyanColor];// 边框色 navigation.navigation[...]
iOS-UI-UIPageControl 页码控制器
由 YIem 撰写于
2016-01-19
浏览:5285 评论:0
/********UIPageControl 页码********/ UIPageControl *pcr = [[UIPageControl alloc] initWithFrame:CGRectMake(100, 500, 200, 50)]; // 注意属性 // 注意, 如果不设置页码个数 控件不显示 pcr.numberOfPages[...]
iOS-UI-UISlide- 滑动条
由 YIem 撰写于
2016-01-19
浏览:5904 评论:0
UISlide 滑动条UISlider *slide = [[UISlider alloc] initWithFrame:CGRectMake(100, 400, 300, 10)];// 重要属性 // 最小值 slide.minimumValue = 0; // 最大值 slide.maximumValue = 10; // 设置进度位置 sl[...]
iOS-UI-UISwith 开关
由 YIem 撰写于
2016-01-19
浏览:4615 评论:0
/****** UISwith 开关******/ // frame只有坐标生效, 大小无效由系统默认指定 UISwitch *swt = [[UISwitch alloc] initWithFrame:CGRectMake(100, 200, 0, 0)]; // 注意触发方式 [swt addTarget:self action:@sele[...]
iOS-UI-创建3个UISlider-分别设置划过区域的颜⾊分别为红,黄,蓝-通过控制三个slider改变self.view的背景颜⾊
由 YIem 撰写于
2016-01-19
浏览:4754 评论:0
iOS-UI-创建3个UISlider-分别设置划过区域的颜⾊分别为红,黄,蓝-通过控制三个slider改变self.view的背景颜⾊ #import "ViewController.h"@interface ViewController ()@property (nonatomic, retain) UISlider *red;@proper[...]
iOS-UI-UIKit框架-UIKit-事件手势
由 YIem 撰写于
2016-01-19
浏览:4767 评论:0
#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UILabel *label;@end@implementation ViewController(void)dealloc{ [_label release[...]
iOS-UI - 假夜间模式-VC 屏幕遮住
由 YIem 撰写于
2016-01-19
浏览:5214 评论:0
/******* 假夜间模式 *********/ // 开关 UISwitch *sw = [[UISwitch alloc] initWithFrame:CGRectMake(100, 200, 100, 100)]; [sw addTarget:self action:@selector(swAction:) forControlEvents[...]
iOS-UI-活动界面铺设
由 YIem 撰写于
2016-01-19
浏览:4667 评论:0
VC.m#import "ActivityDetailViewController.h"import "ActivityDetailView.h"@interface ActivityDetailViewController ()@end@implementation ActivityDetailViewController
iOS-UI_UIImageView-的部分代码操作-图片播放-播放次数-播放时间-开始播放
由 YIem 撰写于
2016-01-15
浏览:4396 评论:0
// 图片UIImageView UIImageView *imageV = [[UIImageView alloc] initWithFrame:self.view.frame]; // 设置图片 imageV.image = [UIImage imageNamed:@"BackGround"]; [self[...]
iOS- UIView的基本操作-代码
由 YIem 撰写于
2016-01-15
浏览:5740 评论: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
由 YIem 撰写于
2016-01-14
浏览:5247 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UITextField *field1;@property (nonatomic, [...]
iOS-植物大战僵尸-UIVIew-UIImageView-
由 YIem 撰写于
2016-01-14
浏览:4401 评论:0
iOS-植物大战僵尸-UIVIew-UIImageView-#import "ViewController.h" @interface ViewController ()@end@implementation ViewController(void)viewDidLoad { [super viewDidLoad]; // [...]
iOS-TOM猫-汤姆猫动画播放-UIImageVIew
由 YIem 撰写于
2016-01-14
浏览:5032 评论: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
浏览:5377 评论:0
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色写在ViewController.m
OC-协议代理-模拟return点击事件
由 YIem 撰写于
2016-01-12
浏览:6347 评论: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-12
浏览:6368 评论: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-10
浏览:5111 评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]
OC-* 实现图书管理系统:数组可以添加、删除可以从数组根据书名查找书籍,并修改书籍的价格
由 YIem 撰写于
2016-01-09
浏览:4826 评论: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
浏览:6665 评论: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-09
浏览:4488 评论: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-09
浏览:4997 评论:0
// block // 定义一个block 无返回值 无参数 void (^block1)(void) = ^(void) { NSLog(@"甜甜"); }; // 调用一个block block1(); NSInteger (^block2[...]
OC-不同类型转换-整型转NSString-NSString转整型
由 YIem 撰写于
2016-01-09
浏览:3726 评论:0
///************* 不同类型转换 ****** // 整型转NSString int a = 3; NSString *str = [NSString stringWithFormat:@"%d", a]; NSLog(@"%@", str); // NS[...]
1
...
7
8
9
10
11
...
13
Yiem
心比天高,命比纸薄。
文章
1300
评论
165
分类
16
标签
1300
页面
1
浏览
1300
随机文章
2015 -11-20 内存管 ...
iOS-// 清除内存缓存 ...
如何导出FileZilla- ...
hostodo VPS $10.00 ...
clang-5.0: error: ...
【跑路】MegaZoneHo ...
HostFlyte 洛杉矶 K ...
Apple官方SwiftUI教 ...
Apple Developer 会 ...
北京之行
Tags
ios(119)
便宜vps(119)
洛杉矶vps(107)
美国vps(105)
vps(98)
ios开发(91)
KVM VPS(89)
过年(77)
洛杉矶便宜VPS(73)
PayPal购买VPS(73)
还有多少天过年(71)
春节(64)
最新文章
《折叠苍穹》十六、十七、...
《折叠苍穹》 二十一、二...
《折叠苍穹》 十一、十二...
《折叠苍穹》六、七、八、...
《折叠苍穹》 一、二、三...
AI 写的小说,《折叠苍...
Xcode Versio...
一段和 AI 的瞎扯的内...
北京之行
请珍重,不相送。
最新评论
YIem
:
是的,需要发票的话还[...]
leeson
:
我也被坑了,前两年是[...]
YIem
:
安装完可以删除
绝对小白菜
:
下载好的Window[...]
啊鱼竿哦哦哦
:
哈哈哈
Links
帮助教程
HelpDocsHub
ipv6测试
个人博客
赵容部落
Typecho主题模版