摘要:
a (void)viewDidLoad { [super viewDidLoad]; self.tableView.contentInset = UIEdgeInsetsMake(kImageOriginHight, 0, 0, 0); [self.tableView addSubview:self
阅读全文
posted @ 2016-08-07 17:50
jackyshan
阅读(219)
推荐(0)
摘要:
解决方法 ruby v rvm requirements brew install libyaml rvm pkg install openssl rvm install 2.3.1 with openssl dir=$HOME/.rvm/usr gem sources a https://ruby
阅读全文
posted @ 2016-08-03 20:42
jackyshan
阅读(1331)
推荐(0)
摘要:
取消 no daemon <!DOCTYPE plist PUBLIC " //Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList 1.0.dtd" KeepAlive Label homebrew.mxcl.privo
阅读全文
posted @ 2016-07-28 19:07
jackyshan
阅读(16)
推荐(0)
摘要:
一行 CGFloat buttonX = 0; CGFloat buttonY = 25; CGFloat buttonW = 37; CGFloat buttonH = 60; CGFloat margin = (self.view.width 6 buttonW) / 7; for (int i
阅读全文
posted @ 2016-06-16 16:59
jackyshan
阅读(140)
推荐(0)
摘要:
DocumentRoot "/Library/WebServer/Documents" Possible values for the Options directive are "None", "All", or any combination of: Indexes Includes Follo
阅读全文
posted @ 2016-06-10 18:52
jackyshan
阅读(161)
推荐(0)
摘要:
上传视频的时候打印$_FILES为空,小的文件就没问题,后来发现是因为传的文件太大, 出现这个问题的原因主要有两个:表单原因或者php设置原因: 1,表单类型: 上传文件的表单编码类型必须设置成 enctype="multipart/form data",因为要传大数据,一般提交方式用POST. 2
阅读全文
posted @ 2016-06-10 18:51
jackyshan
阅读(1898)
推荐(0)
摘要:
解决方法 设置webview的opaque为no
阅读全文
posted @ 2016-05-24 17:06
jackyshan
阅读(509)
推荐(0)
摘要:
这些天,公司新安装的几台服务器,发现SSH本地连接上去,速度非常慢,慢的难以忍受,大概30秒左右。 后来到网上查了下,尝试了一种办法,效果还可以,特发上来给大家共享。 [root@data208 ~] vi /etc/ssh/sshd_config 修改 UseDNS yes 为 UseDNS no
阅读全文
posted @ 2016-05-22 23:22
jackyshan
阅读(355)
推荐(0)
摘要:
Dynamically invoke a class method in Objective C 代码 import import "A.h" @implementation A (NSString )description { return [NSString stringWithString:
阅读全文
posted @ 2016-05-20 17:19
jackyshan
阅读(138)
推荐(0)
摘要:
解决方法 SEL selector = NSSelectorFromString(@"applySketchFilter:"); IMP imp = [FWApplyFilter methodForSelector:selector]; UIImage ( func)(id, SEL, UIImag
阅读全文
posted @ 2016-05-20 17:16
jackyshan
阅读(180)
推荐(0)