commit | be360ee4ff11f34508c7ce7c2b11eba7ffb44c82 | [log] [tgz] |
---|---|---|
author | Ian Gordon <iangordon@google.com> | Tue Apr 25 20:22:55 2017 |
committer | Ian Gordon <iangordon@google.com> | Tue Apr 25 20:22:55 2017 |
tree | 80a124ff2e32960eceef90743ed4906afc9195d2 | |
parent | d9698d9dcdd1b94e59c7a910e51cae660c0042af [diff] |
Fix id -> BOOL cast bugs
MDFInternationalization assists in internationalizing your app or components.
A view is conceptually positioned within its superview in terms of leading/trailing. When it's time to actually lay out (i.e. setting frames), you position the frame as you usually would, but if you are in the opposite layout direction you use this code to return a CGRect that has been flipped around its vertical axis.
A category on UIImage backports iOS 10's [UIImage imageWithHorizontallyFlippedOrientation]
to earlier versions of iOS.
A category on UIView backports iOS 9‘s -[UIView semanticContentAttribute]
and iOS 10’s -[UIView effectiveUserInterfaceLayoutDirection]
to earlier versions of iOS.
See MDCInternationalizationExample for an example of how to use this functionality.
MDFInternationalization is licensed under the Apache License Version 2.0.