[关闭]
@kezhen 2015-08-06T06:26:54.000000Z 字数 852 阅读 1942

关于iOS开发的Github开源库

Github


一、UI库

1. NYAlertViewController

Description:Highly customizable replacement for UIAlertController/UIAlertView.

Features
Includes content view property for adding custom views to the alert view
Block-based API similar to UIAlertController/UIAlertAction
Support for all screen orientations and iPad screen sizes.

NYAlertViewController

2. Cartography(Declarative Auto Layout in Swift )

Using Cartography, you can set up your Auto Layout constraints in declarative code and without any stringly typing!

In short, it allows you to replace this:

  1. addConstraint(NSLayoutConstraint(
  2. item: button1,
  3. attribute: .Right,
  4. relatedBy: .Equal,
  5. toItem: button2,
  6. attribute: .Left,
  7. multiplier: 1.0,
  8. constant: -12.0
  9. ))

with this

  1. layout(button1, button2) { button1, button2 in
  2. button1.right == button2.left - 12
  3. }

二、工具库

1. Declarative Auto Layout in Swift

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注