binghe.org
冰河 » 冰河的博客
http://www.binghe.org/author/lovecan
年度密码 事业和爱情其实都充满机会,运气也不错,但这一年被 变化 和 无常 折磨的心力交瘁。 Continue reading ». Startssl 提供免费 SSL 证书,我们可以用其搭建 https 网站,过程简单记录如下. 1 打开 http:/ www.startssl.com/ ,注册一个用户,注意这个网站是用证书验证用户身份的,所以证书一定备份好。 2 登陆后进入 Validations Wizard,验证你要添加 ssl 支持的域名。 3 进入 Certificates Wizard,并选择 Web Servers SSL/TLS Certificates。 4 创建一个 private key,连同密码一起保管好。 6 网站会给出证书,保存为 .csr 文件。 7 使用 Tool Box 里面的 Decrypt Private Key 或者用 openssl 将第4步生成的 private key 解密,并将结果保存为 .key 文件。 Continue reading ». 登陆后运行 screen -S lnmp. Continue reading ». SOCKS4 connec...
pocketdigi.com
Android开发 | 应用开发笔记
http://www.pocketdigi.com/category/android-development
8 八月 2016, 10:05 上午. Android在Intent,Bundle传递数据时,都需要对象对应的类实现Parcelable或Serial …. Continue reading ‘Android开发:Parcelable和Serializable序列化的区别’ ». 20 四月 2016, 4:39 下午. 设计效果是这样的: 两个圆,底下是蓝色,上面的是白色,用LayerDrawable做,两个ShapeDrawa …. Continue reading ‘Android开发:LayerDrawable setBounds无效解决方法’ ». ITerm 终端 设置 代理(http,socks5). 13 十月 2015, 10:27 上午. Continue reading ‘iTerm 终端 设置 代理(http,socks5)’ ». 百度地图35.0和导航2.0 sdk同时使用时,地图不显示bug解决. 14 八月 2015, 4:41 下午. 所有SDK是从http:/ lbsyun.baidu.com/sdk/download? 27 六月 2015, 4:16 下午.
pocketdigi.com
前端开发 | 应用开发笔记
http://www.pocketdigi.com/category/html-css
31 八月 2016, 3:58 下午. Continue reading ‘Ionic:Tab保持在底部’ ». 28 六月 2016, 10:51 上午. 用flex按比例布局,以下代码为将一个box拆分成1:1:1 div class=box& …. Continue reading ‘HTML5/CSS 使用Flex布局按比例布局’ ». 10 九月 2013, 10:58 上午. 默认情况下,背景属性是平铺的,如果背景图片较大,而box小,那么就只能显示左上角那块背景.如果要让背景全部显示 …. Continue reading ‘css 背景自动缩放’ ». Css 列表li设置float left后,ul高度不能自适应的解决. 10 九月 2013, 9:30 上午. 因为li要横排,所以必须加上float:left属性,而ul是没有设高度,自适应的.但是现在发现,把li浮动到 …. Continue reading ‘Css 列表li设置float left后,ul高度不能自适应的解决’ ». 2 八月 2013, 9:26 上午. 5 五月 2013, 11:44 上午.
pocketdigi.com
Android开发:View内容生成图片 | 应用开发笔记
http://www.pocketdigi.com/20150627/1426.html
27 六月 2015, 4:16 下午. ContentLayout.setDrawingCacheEnabled(true); contentLayout.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED) ; contentLayout.layout(0, 0, contentLayout.getMeasuredWidth(), contentLayout.getMeasuredHeight() ; contentLayout.buildDrawingCache(); Bitmap bitmap= contentLayout.getDrawingCache();. 2015, 冰冻鱼. 请尊重作者劳动成果,复制转载保留本站链接! 百度地图35.0和导航2.0 sdk同时使用时,地图不显示bug解决 ».
pocketdigi.com
iOS开发:Swift语言使用iconfont | 应用开发笔记
http://www.pocketdigi.com/20150121/1419.html
21 一月 2015, 4:30 下午. Iconfont极大地方便了我们应用的开发,一些小图标可以做成iconfont,生成一个iconfont.ttf的字体,使用时项目里不再需要多种不同分辨率的图标,只需要将Android TextView或iOS UILabel的字体设成iconfont,即可显示图标。 生成iconfont可借助 http:/ www.iconfont.cn/. 2、切到项目属性–Build Phases–Copy Bundle Resources–把iconfont.ttf加到这里. 3、在Info.plist的根节点下,添加UIAppFonts的Array,Array下添加item,值为iconfont.ttf. WriteLabel.font = UIFont(name: iconfont, size: 20) / swift使用unicode码 writeLabel.text = u{e603}. 2015, 冰冻鱼. 请尊重作者劳动成果,复制转载保留本站链接!
pocketdigi.com
iOS开发: UICollectionView的使用(swift版,解决cell不显示) | 应用开发笔记
http://www.pocketdigi.com/20141221/1406.html
21 十二月 2014, 3:01 下午. 环境:Xcode 6.1.1 Swift语言. 新建SingleView Application,删除默认的ViewController类,清空Main.storyboard。 往Mainstoryboard拖进一个Collection View Controller,默认会有一个Collection View,往Collection View里拖进一个Collection View Cell,这个Cell就相当于是一个Item,接下来往Cell里随便拖个label,button之类的控件,用于测试。 选中cell,切换到Attributes inspector,将Identifier设为”cell”,无引号,字符串。 选中Collection View Controller,切到Attributes inspector,将View Controller下的Is Initial View Controller勾选,这一步是声明这个View Controller是第一个ViewController,打开应用时展示这个。 Override func collect...
pocketdigi.com
iOS开发:仿余额宝金额跳动效果 | 应用开发笔记
http://www.pocketdigi.com/20150115/1417.html
15 一月 2015, 5:52 下午. 参考了开源项目 https:/ github.com/PigRiver/NumberJumpDemo,这个是用OC写的,我用Swift改写了一个版本。 说下原理 先确定使用的贝塞尔曲线, 确定两桢间的间隔,根据间隔和总时间计算得到总桢数,根据贝塞尔曲线算出每桢的时间和值,然后delay设置显示的string。 存储贝塞尔曲线的点 import UIKit class BezierPoint { let x:Float! Init(x:Float,y:Float) { self.x = x self.y = y } }. Import UIKit class CountLayer: CATextLayer { / 每帧间隔 let durationPerFrame:NSTimeInterval = 20.0; / 总时间 var durationTotal:NSTimeInterval = 1500.0 / 开始值 var startNumber:Float! 当前画的点 var indexCurrent:Int var lastTime:Float! Overr...
pocketdigi.com
iOS开发:给View设置渐变背景 | 应用开发笔记
http://www.pocketdigi.com/20150114/1416.html
14 一月 2015, 3:43 下午. Import UIKit class GradientColors { let colorTop:CGColorRef let colorCenter:CGColorRef let colorBottom:CGColorRef let gl: CAGradientLayer init(colorTop:CGColorRef, colorCenter:CGColorRef, colorBottom:CGColorRef) { self.colorTop = colorTop self.colorCenter = colorCenter self.colorBottom = colorBottom gl = CAGradientLayer() gl.colors = [ colorTop,colorCenter,colorBottom] } }. IBOutlet weak var topBgView: UIView! 2015, 冰冻鱼. 请尊重作者劳动成果,复制转载保留本站链接!
pocketdigi.com
iOS中文文档:UIView | 应用开发笔记
http://www.pocketdigi.com/20150105/1413.html
5 一月 2015, 4:25 下午. 遵循:UITraitEnvironment, UIDynamicItem, NSObject, UICoordinateSpace, UIAppearanceContainer, UIAppearance, NSCoding. View在他们的矩形区域使用UIKit,Core Graphics和OpenGL ES之类的技术绘画. 在iOS 2.x时,UIView的最大尺寸是1024*1024点,在iOS 3.0以后,不再强制限制大小,而是受限于内存消耗。 Let viewRect = CGRect(x: 10, y: 10, width: 100, height: 100) let myView = UIView(frame: viewRect). CGRect viewRect = CGRectMake(10, 10, 100, 100); UIView* myView = [ UIView alloc] initWithFrame:viewRect];. 避免子类化的更多信息, 见 * 选择子类化 (待翻) *. 这个属性的值是一个浮点值,范围从0.0...
pocketdigi.com
留言本(交换链接) | 应用开发笔记
http://www.pocketdigi.com/guestbook
本站站名:应用开发笔记 URL http:/ www.pocketdigi.com.