02 2015 档案

摘要:主Viewcontroller 需要使用UIViewControllerTransitioningDelegate协议:class ViewController: UIViewController ,UIViewControllerTransitioningDelegate{ var cust... 阅读全文
posted @ 2015-02-28 10:52 ericjuns 阅读(962) 评论(0) 推荐(0)
摘要:iOS 7 自定义ViewController动画切换自定义动画切换的相关的主要API在深入之前,我们先来看看新SDK中有关这部分内容的相关接口以及它们的关系和典型用法。这几个接口和类的名字都比较相似,但是还是能比较好的描述出各自的职能的,一开始的话可能比较迷惑,但是当自己动手实现一两个例子之后,它... 阅读全文
posted @ 2015-02-20 23:06 ericjuns 阅读(739) 评论(0) 推荐(0)
摘要:响应单击事件:blankView.userInteractionEnabled = truelet blankTap = UITapGestureRecognizer(target: self, action: "hiddenDetail")blankView.addGestureRecognize... 阅读全文
posted @ 2015-02-19 20:34 ericjuns 阅读(296) 评论(0) 推荐(0)
摘要:一\ 写一个函数:func UIColorFromRGB(rgbValue: UInt) -> UIColor { return UIColor( red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, green: C... 阅读全文
posted @ 2015-02-16 09:28 ericjuns 阅读(1245) 评论(0) 推荐(0)
摘要:字符串分隔:var str_componets = "I would prefer a face-to-face talk with my friends"str_componets.componentsSeparatedByCharactersInSet(NSCharacterSet(charac... 阅读全文
posted @ 2015-02-15 10:34 ericjuns 阅读(192) 评论(0) 推荐(0)
摘要:在页面中设置self.navigationItem.title = “”self.title 指TabBarController title 阅读全文
posted @ 2015-02-08 11:30 ericjuns 阅读(317) 评论(0) 推荐(0)