cordova for ios: Unable to simultaneously satisfy constraints.

來源:互聯網
上載者:User

標籤:

  使用cordova開發ios項目的時候,在上傳圖片碰到一個問題。使用html的<input type="file"/>標籤來選擇照片或者拍照片,引起了布局報錯,然後圖片上傳過程中很容易崩潰閃退。

html頁面代碼:

<html><head></head><body>        <input type="file" />    </body></html>

然後在真機測試,點擊選擇檔案,控制台出現布局報錯日誌:

Unable to simultaneously satisfy constraints.    Probably at least one of the constraints in the following list is one you don‘t want.     Try this:         (1) look at each constraint and try to figure out which you don‘t expect;         (2) find the code that added the unwanted constraint or constraints and fix it. (    "<NSLayoutConstraint:0x156734e0 UILabel:0x1568b9f0.width == UIView:0x155d9110.width - 32>",    "<NSLayoutConstraint:0x1568db80 UIView:0x155d9110.width == UIView:0x155d8fc0.width>",    "<NSLayoutConstraint:0x156913b0 H:[UIView:0x155d8fc0(30)]>")Will attempt to recover by breaking constraint <NSLayoutConstraint:0x156734e0 UILabel:0x1568b9f0.width == UIView:0x155d9110.width - 32>Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

 

然後上傳圖片或者視頻的時候,常會出現崩潰閃退現象。在cordova和phonegap搜了下,沒搜到解決的辦法,不知道哪位兄台又碰到這個問題麼,指點我一下!

完整cordova for ios demo下載:http://download.csdn.net/detail/tandaxia/9455872

原文連結:http://www.cnblogs.com/tandaxia/p/5255394.html

cordova for ios: Unable to simultaneously satisfy constraints.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.