ReactiveCocoa v4.2.2 发布

jopen 8年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/0c2c775693c57317553bf1880c4aeaea.png" /></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>    <p><strong>添加</strong></p>    <ul>     <li>Support for Swift 2.3 (<a href="/misc/goto?guid=4958992268994567342" title="Support Swift 2.3">#3005</a>, thanks <a href="/misc/goto?guid=4958991154262794987">@ikesyo</a>!)</li>     <li><code>Signal.observeResult</code>/<code>SignalProducer.startWithResult</code> for observing values with explicit error handling (<a href="/misc/goto?guid=4958992269151576209" title="Deprecated startWithNext/observeNext and exposed only for Error == NoError. Added startWithResult/observeResult">#3011</a>, thanks <a href="/misc/goto?guid=4958991156698191257">@NachoSoto</a>!)</li>     <li>A sandbox page to the playground (<a href="/misc/goto?guid=4958992269309820414">#3031</a>, thanks <a href="/misc/goto?guid=4958991155323514846">@RuiAAPeres</a>!)</li>    </ul>    <p><strong>改进</strong></p>    <ul>     <li>API documentation now uses Xcode’s markup (<a href="/misc/goto?guid=4958992269463180135">#2995</a>, thanks <a href="/misc/goto?guid=4958991155511719252">@tomj</a> and <a href="/misc/goto?guid=4958992269651333558">@eimantas</a>!)</li>    </ul>    <p><strong>已弃用</strong></p>    <ul>     <li><code>Signal.observeNext</code>/<code>SignalProducer.startWithNext</code> have been deprecated on error-producing signals/producers in favor of the new result variants (<a href="/misc/goto?guid=4958992269151576209" title="Deprecated startWithNext/observeNext and exposed only for Error == NoError. Added startWithResult/observeResult">#3011</a>, thanks <a href="/misc/goto?guid=4958991156698191257">@NachoSoto</a>!)</li>     <li><code>SignalProducer.buffer()</code> has been deprecated in anticipation of its removal in RAC 5 (<a href="/misc/goto?guid=4958992269809625465" title="Deprecate SignalProducer.buffer()">#3015</a>, thanks <a href="/misc/goto?guid=4958991156394708930">@mdiep</a>!)</li>    </ul>    <p><strong>Bug修复</strong></p>    <ul>     <li><code>SignalProducer(values: Value...)</code> was ambiguous with <code>SignalProducer(values: [Value])</code> when<code>Value</code> was a signal/producer (<a href="/misc/goto?guid=4958992269982228280" title="Fix `SignalProducer(values: Value...)` signature to be distinguished from `SignalProducer(values: S)`">#3043</a>, thanks <a href="/misc/goto?guid=4958991154262794987">@ikesyo</a>!)</li>     <li><code>MutableProperty</code> binding leaked when disposing (<a href="/misc/goto?guid=4958992270128554058">#3018</a>, thanks <a href="/misc/goto?guid=4958992270248036435">@azeff</a>!)</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958992270374111839" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958992270511070042" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <h2> </h2>