摘要: TableView 下拉表头放大 导航栏颜色透明度随着TableView偏移量渐变 用storeboard 布局,之前尝试在storeboard中设置tableview的表头,但是那样弄出来的效果 表头不贴着上面,后来改成storeboard和代码 结合,最后实现的这个效果 下载链接: https: 阅读全文
posted @ 2016-07-29 16:45 出神入化VV 阅读(1106) 评论(0) 推荐(0)
摘要: Demo链接: https://github.com/ShaoWenLe/Runtimer-Demo.git 参考文章: http://www.jianshu.com/p/080a238c62b9 相关Runtime介绍: http://www.cocoachina.com/ios/20160523 阅读全文
posted @ 2016-07-13 17:04 出神入化VV 阅读(1090) 评论(0) 推荐(0)
摘要: 如果你还在苦恼block的传值和回调,不妨看看这个Demo,自己整理的,希望对大家有帮助,这是下载地址 https://github.com/ShaoWenLe/BlockTestByValueAndCall-back.git 用的是storyboard结合Xib,如果看着不习惯,可以从上面链接下载 阅读全文
posted @ 2015-08-15 12:52 出神入化VV 阅读(2499) 评论(0) 推荐(0)
摘要: 这是Xib的图,不知道怎么直接传工程,知道的朋友可以说一下,我就直接发工程了,仅供参考 #import "PlayerViewController.h" #import @interface PlayerViewController () { BOOL falg; BOOL falg1; AVPlayerLayer *playerLayer; NSStrin... 阅读全文
posted @ 2015-03-23 11:30 出神入化VV 阅读(11752) 评论(1) 推荐(1)
摘要: // Playground - noun: a place where people can playimport UIKit//HelloWorldvar str = "Hello, playground"//常量可以改变值var myVariable = 42myVariable = 50let... 阅读全文
posted @ 2015-02-05 22:11 出神入化VV 阅读(549) 评论(0) 推荐(0)
摘要: //输入XX年XX月XX日,计算出日期// Playground - noun: a place where people can playimport UIKitfunc days (year: Int, month : Int, day : Int) ->(Int) { if (year... 阅读全文
posted @ 2015-02-02 19:50 出神入化VV 阅读(456) 评论(0) 推荐(0)
摘要: #import @interface SecondViewController : UIViewController@end#import "SecondViewController.h"@interface SecondViewController (){ }@property... 阅读全文
posted @ 2015-01-28 20:09 出神入化VV 阅读(149) 评论(0) 推荐(0)
摘要: 这种初始化方法最简单实用定时器参数1:定时时间间隔定时器参数2:自己执行这个方法定时器参数3:执行的方法定时器参数4:需要传的参数(我这里是简介,就没传参数)定时器参数5:是否重复定时器操作(YES/NO,如果为NO,只执行一次定时器方法)[NSTimer scheduledTimerWithTim... 阅读全文
posted @ 2015-01-26 13:11 出神入化VV 阅读(149) 评论(0) 推荐(0)
摘要: 多线程单例.h#import @interface DataHandle : NSObject+ (DataHandle *)defaultdataHandle;@end多线程单例.m#import "DataHandle.h"@implementation DataHandle+ (DataHan... 阅读全文
posted @ 2015-01-26 11:45 出神入化VV 阅读(167) 评论(0) 推荐(0)