@kezhen
2015-08-06T06:26:54.000000Z
字数 852
阅读 1942
Github
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.
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:
addConstraint(NSLayoutConstraint(
item: button1,
attribute: .Right,
relatedBy: .Equal,
toItem: button2,
attribute: .Left,
multiplier: 1.0,
constant: -12.0
))
with this
layout(button1, button2) { button1, button2 in
button1.right == button2.left - 12
}