YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!
首页
关于
关键字
oc
的文章
iOS-UI-UISlide- 滑动条
由 YIem 撰写于
2016-01-18
浏览:4536 评论: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-18
浏览:3232 评论: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-18
浏览:3300 评论:0
iOS-UI-创建3个UISlider-分别设置划过区域的颜⾊分别为红,黄,蓝-通过控制三个slider改变self.view的背景颜⾊#import "ViewController.h"@interface ViewController ()@property (nonatomic, retain) UISlider *red;@property[...]
iOS-UI-UIKit框架-UIKit-事件手势
由 YIem 撰写于
2016-01-18
浏览:3202 评论:0
#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UILabel *label;@end@implementation ViewController(void)dealloc{[_label release];[...]
iOS-UI - 假夜间模式-VC 屏幕遮住
由 YIem 撰写于
2016-01-18
浏览:3772 评论:0
/******* 假夜间模式 *********/ // 开关 UISwitch *sw = [[UISwitch alloc] initWithFrame:CGRectMake(100, 200, 100, 100)]; [sw addTarget:self action:@selector(swAction:) forControlEvents[...]
iOS-UI- SetViewController-抽屉效果
由 YIem 撰写于
2016-01-18
浏览:4499 评论: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
浏览:3975 评论: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
浏览:5474 评论:0
// 提示框 // 提示框的样式只有两种 中间 下方 UIAlertController *alertC = [UIAlertController alertControllerWithTitle:@"注意" message:@"你是傻逼" preferredStyle:UIAlertControllerS[...]
iOS-UI-容器视图控制器
由 YIem 撰写于
2016-01-18
浏览:3570 评论:0
// 容器视图控制器 self.secondVC = [[SecondViewController alloc] init]; // 将VC添加的原因 // 1. 事件沿VC传递 // 2. 防止VC释放而所属View未释放 [self addChildViewController:self.secondVC]; [self.view addS[...]
iOS-UI-活动界面铺设
由 YIem 撰写于
2016-01-18
浏览:3320 评论:0
VC.m#import "ActivityDetailViewController.h"import "ActivityDetailView.h"@interface ActivityDetailViewController ()@end@implementation ActivityDetailViewController
iOS-UI_UIImageView-的部分代码操作-图片播放-播放次数-播放时间-开始播放
由 YIem 撰写于
2016-01-14
浏览:2981 评论:0
// 图片UIImageView UIImageView *imageV = [[UIImageView alloc] initWithFrame:self.view.frame]; // 设置图片 imageV.image = [UIImage imageNamed:@"BackGround"]; [self[...]
iOS-UI-UITextField-的部分操作代码-密文输入-消除按钮-键盘样式-边框样式
由 YIem 撰写于
2016-01-14
浏览:4277 评论: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
浏览:3735 评论: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
浏览:3245 评论: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键盘回收-按return键盘回收-或者跳入下一个UITextFielf
由 YIem 撰写于
2016-01-14
浏览:3850 评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf#import "ViewController.h" @interface ViewController ()<UITextFieldDelegate>@property (nonatomic, retain) UITextField *fi[...]
iOS-植物大战僵尸-UIVIew-UIImageView-
由 YIem 撰写于
2016-01-14
浏览:2988 评论: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
浏览:3763 评论:0
iOS-TOM猫-汤姆猫动画播放-UIImageVIew#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UIImageView *img;@end@implementation ViewController([...]
“快播和百度贴吧同样是一个平台,快播因为纵容在平台上传播淫秽电影而破产,同时其主要负责人也等着被法院宣判。那么,百度凭什么不破产?李彦宏凭什么不被告上法院?”
由 YIem 撰写于
2016-01-14
浏览:3246 评论:0
新浪科技讯 1月12日早间消息,百度出卖血友吧事件继续发酵,网友在知乎发帖继续举报称,除血友吧外,还涉及不孕不育吧、糖尿病吧、癫痫吧等热门疾病吧被引入商业合作的吧主。据知乎网友ytytytyt调查统计,在3259个健康保健类吧中,有近40%的热门疾病吧已被卖。不过百度方面告诉新浪科技:病种吧已不允许引入商业合作。 不完全统计:40%热门疾病吧[...]
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色
由 YIem 撰写于
2016-01-13
浏览:3884 评论:0
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色写在ViewController.m
OC-协议代理-模拟return点击事件
由 YIem 撰写于
2016-01-12
浏览:5017 评论: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
浏览:4762 评论: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
浏览:3637 评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]
OC-* 实现图书管理系统:数组可以添加、删除可以从数组根据书名查找书籍,并修改书籍的价格
由 YIem 撰写于
2016-01-09
浏览:3345 评论: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
浏览:5330 评论: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
浏览:3051 评论: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[...]
1
...
8
9
10
11
12
...
14
Yiem
心比天高,命比纸薄。
文章
1281
评论
163
分类
16
标签
1281
页面
1
浏览
1281
随机文章
在使用谷歌浏览器访 ...
垃圾金山系列之网络 ...
Google Search网站( ...
Google广告网址
20180507-最新Apple ...
【已经跑路】HostBR ...
2018年9月18日推出i ...
还有多少天过年,还 ...
记录一个UITests Fa ...
九一八!九一八!九 ...
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主题模版