- 博客(11)
- 资源 (3)
- 收藏
- 关注
原创 objective 动画
-(void)animo10{ //1 创建并指定要修改的属性 // KeyPath:CAlayer的属性名, 不是所有的属性都可以, 只有在头文件中出现animatable的属性才可以, 可以修改属性的属性, 例如:bounds.size // CALayer CABasicAnimation *basic = [CABasicAnimation animationW
2016-07-19 16:29:03
264
原创 命令行操作 sqlite 数据库
一、命令行操作数据库:1、查看版本号: zhengbings-MacBook-Pro:~ zhengbing$ sqlite32、进入到sqlite互动模式: 输入sqlite3,或者sqilite3+.db,其中是数据库的名字,如果没有 这个名字的数据库就创建一个新的数据库。 zhengbings-MacBook-Pro:test
2016-07-19 16:13:22
677
原创 IOS CollectionView 线性布局
线性布局,可以实现左右滑动,并在滑动的时候改变显示的大小。 具体包含以下几个类: 1、UIView 的扩展类目:UIView+ChangeFrameValue.h UIView+ChangeFrameValue.m2、UICollectionViewFlowLayout 子类LineFlowLayout.h LineFlowLayout.m3、UICollectionViewCell 子类MyC
2016-06-30 18:06:32
518
原创 iOS-CollectionView 瀑布流视图
要做瀑布流,首先要清楚几点:主要是对 UICollectionViewLayout 子类的编写。第一步、自定义初始化(主要是参数的初始化,行数numberOfLine,行间距rowGap,列间距lineGap,边距sideGap)第二步、prepareLayout(1.初始化每列高度的字典,2初始化属性数组。)第三步、layoutAttributesForElementsInRect(返回属性数组。
2016-06-30 17:16:11
341
原创 NSMutableAttributedString属性文字
// // ViewController.m // NSMutableAttributedString // // Created by zhengbing on 6/30/16. // Copyright © 2016 zhengbing. All rights reserved. //#import "ViewController.h"@interface ViewController
2016-06-30 16:53:38
338
原创 ios自定义标签控制器
// // MyTabBarViewController.swift // DeepBreathDemo2 // // Created by zhengbing on 6/8/16. // Copyright © 2016 zhengbing. All rights reserved. //import UIKit class MyTabBarViewController: UITabBarCont
2016-06-14 22:04:00
499
原创 不经过中间变量改变两个数的值
// // main.m // TEST123 // // Created by zhengbing on 6/14/16. // Copyright © 2016 zhengbing. All rights reserved. //#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) {
2016-06-14 21:57:42
327
原创 ios属性修饰符详解
// // Person.h // TEST123 // // Created by zhengbing on 6/14/16. // Copyright © 2016 zhengbing. All rights reserved. //#import <Foundation/Foundation.h>@interface Person : NSObject @property (nonat
2016-06-14 21:43:25
434
原创 ios-swift 自定义TabBarViewController
// // MyTabBarViewController.swift // DeepBreathDemo2 // // Created by zhengbing on 6/8/16. // Copyright © 2016 zhengbing. All rights reserved. // import UIKit class MyTabBarViewControll
2016-06-11 21:52:12
1117
原创 IOS 界面传值方法
1 属性传值 2 init 传值 3 block 属性回传 4 协议回传 5 通知回传 6 单例传值 7 NSUserDefaults 传值
2016-06-07 16:24:56
307
原创 App Transport Security
App Transport Security 1.什么是 ATS? iOS 9 中新增 app transport security (简称ATS)特性。主要是之前使用http 协议的都转到TLS1.2协议进行传输。也就是意味着所有遵守 http 协议 的都要转为遵守 https 协议进行传输。 原文如下: 2.为什么要用 ATS? 为了解决
2016-06-02 11:31:08
338
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅