摘要:
tableView 要是不设置成grouped 分区的最后一个会有很多的cellstoryBoard里面设置了 阅读全文
摘要:
backBarButtomItem 这个属性在 navigation Controller 的前一级的视图里设置 在下一级的视图里面才会体现出 "返回" 按钮的名字出现不同 let backButton = UIBarButtonItem(title: "Back", sty... 阅读全文
摘要:
class UILabelOverride: UILabel { override func textRectForBounds(bounds: CGRect, limitedToNumberOfLines numberOfLines: Int) -> CGRect { ... 阅读全文
摘要:
2015-08-27 13:30:29.500 test[9379:578356] *** NSForwarding: warning: object 0x7fd19c017f30 of class 'test.PopUpPickerView' does not implement methodSi... 阅读全文
摘要:
NSFontAttributeNameoverview 里面Attributed String Programming Guide standard attributeTable 1Table of standard attributesAttribute IdentifierValue Class... 阅读全文
摘要:
用 self.tableView.sectionHeaderHeight = 35 self.tableView.sectionFooterHeight = 0设置的高度 第一个section 含有标题时 高度会比其它含有title的section高使用 TableViewDelegate 协议... 阅读全文
摘要:
title 颜色 self.navigationController?.navigationBar.titleTextAttributes =[NSForegroundColorAttributeName: UIColor.whiteColor()] self.naviga... 阅读全文
摘要:
//1 UIGraphicsBeginImageContext(self.view.frame.size) //2 let path = UIBezierPath(ovalInRect: CGRect(x: 0, y: 0, width: ... 阅读全文
摘要:
NSArray、NSString 等OC中实现的都是类类型Array、String 等Swift汇总实现的都是引用类型根据手册上讲的来说值类型在 传值 的通过拷贝出不同的实例来传值 改变一个实例的属性等并不会在其它实例上体现而 引用类型在 传值 的时候通过引用 相当于至拷贝了指针一样 不同变量所指向... 阅读全文
摘要:
方法一: UIStatusBar 默认背景透明 所以可以通过把背景改成黑色来使字变成白色 在需要的试图的Controller 里面设置 self.navigationController?.navigationBar.barStyle = UIBarStyle.Black方法二... 阅读全文