Fix voice record crash bug

This commit is contained in:
kevinzhow
2015-07-15 05:41:53 +08:00
parent 9e0e70aece
commit 97ba3469cd
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>50</string>
<string>51</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
@@ -2242,7 +2242,7 @@ extension ConversationViewController: PullToRefreshViewDelegate {
func pulllToRefreshViewDidRefresh(pulllToRefreshView: PullToRefreshView) {
delay(0.7) {
delay(0.5) {
pulllToRefreshView.endRefreshingAndDoFurtherAction() { [weak self] in
if let strongSelf = self {
+4
View File
@@ -184,6 +184,10 @@ class Waver: UIView {
println("Begin compress")
if waveSamples.count < 1 {
return nil
}
let sampleMax = maxElement(waveSamples)
if sampleMax > 0 { //