烟飞烟灭

好的文章,就是原来不懂得;看了之后有一种原来是这样的感觉!


  • 首页

  • 分类

  • 归档

  • 标签

  • 留言

iOS开发-JSON数据

发表于 2018-03-16 11:07 | 更新于 2018-03-16 15:13 | 分类于 iOS开发 | 阅读次数
字数统计 447 字

JSON是什么

JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式。它基于ECMAScript (w3c制定的js规范)的一个子集,采用完全独立于编程语言的文本格式来存储和表示数据。简洁和清晰的层次结构使得 JSON 成为理想的数据交换语言。 易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。

阅读全文 »

一个点击cell的动画效果

发表于 2018-02-23 17:34 | 更新于 2019-06-12 15:55 | 分类于 iOS开发小技巧 | 阅读次数
字数统计 120 字

今天给大家介绍一个关于cell的比较炫酷的点击动画效果,具体效果请看下面

image

代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//点击状态
-(void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.2];
cell.transform = CGAffineTransformMakeScale(0.87, 0.87);//cell进行缩放
[UIView commitAnimations];
}
//复原
-(void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.2];
cell.transform = CGAffineTransformMakeScale(1, 1);
[UIView commitAnimations];
}

OC记录3--UIImagePickerController

发表于 2018-01-23 15:19 | 更新于 2019-04-24 15:10 | 分类于 iOS学习 | 阅读次数
字数统计 1.4k 字

UIImagePickerController一个获取图片和视频的类,简单特点:

1,可获取相册,图库的图片;
2,可进行拍照,视频录制;
3,可对图片进行编辑;
4,可保存图片和视频到手机;
5,由下面方法推出:

1
- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^ __nullable)(void))completion; 

6,只支持竖屏模式;

阅读全文 »

OC记录2--UIDatePicker

发表于 2018-01-18 14:36 | 更新于 2019-06-12 15:46 | 分类于 iOS学习 | 阅读次数
字数统计 779 字

官方描述:

A control used for the inputting of date and time values.
You can use a date picker to allow a user to enter either a point in time (calendar date, time value or both) or a time interval (for example for a timer). The date picker reports interactions to its associated target object.

译文:

用于输入日期和时间值的控件。您可以使用日期选择器来允许用户输入时间点(日历日期,时间值或两者)或时间间隔(例如,计时器)。日期选择器向与其关联的目标对象报告交互。

阅读全文 »

OC记录1--UIPickerView

发表于 2018-01-17 10:52 | 更新于 2019-06-12 14:49 | 分类于 iOS学习 | 阅读次数
字数统计 897 字

UIPickerView官方描述:

A view that uses a spinning-wheel or slot-machine metaphor to show one or more sets of values.
A picker view displays one or more wheels that the user manipulates to select items. Each wheel—known as a component—has a series of indexed rows representing the selectable items. Each row displays a string or view so that the user can identify the item on that row. Users select items by rotating the wheels to the desired values, which align with a selection indicator.

译文:

使用旋转轮或狭缝机隐喻显示一组或多组值的视图。
选取器视图显示用户操纵选择项目的一个或多个轮子。每个车轮(称为组件)都有一系列代表可选项目的索引行。每行显示一个字符串或视图,以便用户可以识别该行上的项目。用户通过将车轮旋转到与选择指示符对齐的期望值来选择项目。

阅读全文 »
<1…789…15>
自由不可待

自由不可待

离文明世界有多远?

74 日志
17 分类
101 标签
Github
© 2017 - 2021 自由不可待
由 Hexo 强力驱动
主题 - NexT.Pisces