摘要: Update 10/24/12: If you’d like a new version of this tutorial fully updated for iOS 6 and Xcode 4.5, check out iOS 5 by Tutorials Second Edition!Note ... 阅读全文
posted @ 2014-10-29 15:09 wuhn 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 关于Core AnimationCore Animation是iOS与OS X平台上负责图形渲染与动画的基础设施。Core Animation可以动画视图和其他的可视元素。Core Animation为你完成了实现动画所需的大部分绘帧工作。你只需在配置少量的动画参数(如开始点位置和结束点位置)就可启... 阅读全文
posted @ 2014-10-29 14:08 wuhn 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Fun with layers这篇文章的有些内容很奇怪,我根本就没有这种现象,所以暂时就这样吧In this post, I’ll explain how to add a border, rounded corners, and drop shadow to any UIView using so... 阅读全文
posted @ 2014-10-29 13:57 wuhn 阅读(190) 评论(0) 推荐(0) 编辑
摘要: I have a UIView and I'm trying to set its layer properties.self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];self.color... 阅读全文
posted @ 2014-10-29 11:29 wuhn 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: So right now I have a UIView with a UILabel in it. I want the background to have an opacity < 1.0 and the label to have an opacity of 1.0. However sin... 阅读全文
posted @ 2014-10-29 11:27 wuhn 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 在所有编程语言中都涉及到大量的字符串操作,可见熟悉对字符串的操作是何等重要。 Go中的字符串和C#中的一样(java也是),字符串内容在初始化后不可修改。 需要注意的是在Go中字符串是有UTF-8编码的,请注意保存文件时将文件编码格式改成UTF-8(特别是在windows下)。初始化var str ... 阅读全文
posted @ 2014-10-29 00:18 wuhn 阅读(2398) 评论(0) 推荐(0) 编辑