ReactiveCocoa v5.0.3 发布

jopen 7年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/0c2c775693c57317553bf1880c4aeaea.png" /></strong></p>    <p> </p>    <p>ReactiveCocoa的核心为signals即RACSignal类。Signals发出三种类型的事件流:next、completed、和error。</p>    <p>通过此模式,ReactiveCocoa可以用来替代delegate、target-action、key-value observing等模式。</p>    <p>通过signal API创建的代码更加统一且易读.但ReactiveCocoa真正强大之处在于通过这些信号源能进行更多高级操作.这些操作能在相当简洁高雅的操作下执行复杂的筛选、转换、信号协调等。在MVVM中,ReactiveCocoa扮演着重要角色.它提供ViewModel和View之间的绑定操作。</p>    <h2>更新日志</h2>    <ul>     <li>New KVO API: <code>NSObject.reactive(self:).signal(forKeyPath:)</code>. (<a href="/misc/goto?guid=4959005419341927594">#3413</a>, kudos to <a href="/misc/goto?guid=4959005419424170617">@Burgestrand</a>)</li>     <li>New binding targets for <code>UINavigationItem</code> and <code>UITabBarItem</code>. (<a href="/misc/goto?guid=4959005419523769447">#3444</a>, kudos to <a href="/misc/goto?guid=4959005419606023392">@Marcocanc</a>)</li>     <li>New binding targets for <code>UIFeedbackGenerator</code> and its subclasses. (<a href="/misc/goto?guid=4959005419694539239" title="BindingTargets for UIFeedbackGenerator">#3447</a>, kudos to <a href="/misc/goto?guid=4959005419606023392">@Marcocanc</a>)</li>     <li><code>NSObject.reactive(self:).values(forKeyPath:)</code> is deprecated and replaced by<code>NSObject.reactive(self:).producer(forKeyPath:)</code>. (<a href="/misc/goto?guid=4959005419341927594">#3413</a>)</li>     <li>The KVO API now supports object values that are of native Swift classes properly. (<a href="/misc/goto?guid=4959005419802983483" title="Support for native Swift object values in `AnyObject` properties in RAC KVO API.">#3439</a>, kudos to<a href="/misc/goto?guid=4958991158278939411">@andersio</a>)</li>     <li>A bug that could lead to deadlocks and unexpected <code>nil</code> in the KVO API on any arbitrary key path was fixed. (<a href="/misc/goto?guid=4959005419802983483" title="Support for native Swift object values in `AnyObject` properties in RAC KVO API.">#3439</a>)</li>     <li>Continuous text signals of <code>UITextField</code> now emits the latest value for all editing events emitted. In other words, replacements due to autocompletions are now covered by the signals. (<a href="/misc/goto?guid=4959005419940446198">#3442</a> , kudos to<a href="/misc/goto?guid=4958991158278939411">@andersio</a>)</li>     <li>Fixed a ObjC swizzling bug that caused <code>ActionProxy</code> not working well with KVO and RAC method interception. (<a href="/misc/goto?guid=4959005420036760005" title="Improve the interoperability of all ObjC swizzling activities in the framework.">#3435</a>, kudos to <a href="/misc/goto?guid=4958991158278939411">@andersio</a>)</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4959005420143874866" rel="nofollow"><strong>ReactiveCocoa.framework.zip</strong></a></li>     <li><a href="/misc/goto?guid=4959005420227921932" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959005420313331508" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/158e6d4c">http://www.open-open.com/news/view/158e6d4c</a></p>