如何在 iOS 8 中使用 Swift 实现本地通知

2025-04-25 15:12:52
推荐回答(1个)
回答1:

苹果在Xcode 6中加入了两个新的Interface Builder(下文用IB简称)属性声明:IBInspectable和IBDesignable。IBInspectable在IB的Attribute Inspector(属性检查器)中查看类的属性,而IBDesignable能实时更新视图,很厉害吧!
  

  IBInspectable
  以下是我发现的适用于IBInspectable的类型:
  
  下面这些数据都对IBInspectable有效:
  Int
  CGFloat
  Double
  String
  Bool
  CGPoint
  CGSize
  CGRect
  UIColor
  UIImage