- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 IOS CollectionView 线性布局
线性布局,可以实现左右滑动,并在滑动的时候改变显示的大小。 具体包含以下几个类: 1、UIView 的扩展类目:UIView+ChangeFrameValue.hUIView+ChangeFrameValue.m2、UICollectionViewFlowLayout 子类LineFlowLayout.hLineFlowLayout.m3、UICollectionViewCell 子类MyC
2016-06-30 18:06:32 439
原创 iOS-CollectionView 瀑布流视图
要做瀑布流,首先要清楚几点:主要是对 UICollectionViewLayout 子类的编写。第一步、自定义初始化(主要是参数的初始化,行数numberOfLine,行间距rowGap,列间距lineGap,边距sideGap)第二步、prepareLayout(1.初始化每列高度的字典,2初始化属性数组。)第三步、layoutAttributesForElementsInRect(返回属性数组。
2016-06-30 17:16:11 284
原创 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 286
原创 ios自定义标签控制器
//// MyTabBarViewController.swift// DeepBreathDemo2//// Created by zhengbing on 6/8/16.// Copyright © 2016 zhengbing. All rights reserved.//import UIKitclass MyTabBarViewController: UITabBarCont
2016-06-14 22:04:00 453
原创 不经过中间变量改变两个数的值
//// 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 288
原创 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 380
原创 ios-swift 自定义TabBarViewController
//// MyTabBarViewController.swift// DeepBreathDemo2//// Created by zhengbing on 6/8/16.// Copyright © 2016 zhengbing. All rights reserved.//import UIKitclass MyTabBarViewControll
2016-06-11 21:52:12 1027
原创 IOS 界面传值方法
1 属性传值2 init 传值3 block 属性回传4 协议回传5 通知回传6 单例传值7 NSUserDefaults 传值
2016-06-07 16:24:56 255
原创 App Transport Security
App Transport Security1.什么是 ATS?iOS 9 中新增 app transport security (简称ATS)特性。主要是之前使用http 协议的都转到TLS1.2协议进行传输。也就是意味着所有遵守 http 协议 的都要转为遵守 https 协议进行传输。原文如下:2.为什么要用 ATS? 为了解决
2016-06-02 11:31:08 281
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人