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

浙公网安备 33010602011771号