2015-02-17 12 views
5

मैं समाचार की फ़ीड को लागू करने की कोशिश कर रहा हूँ "बाधा तोड़ कर की वसूली के लिए प्रयास करेंगे।" यह काम करता है, लेकिन एक्सकोड इस त्रुटि को दिखाना जारी रखता है। मैंने सभी बाधाओं को बदलने की कोशिश की, हालांकि, मैं काम नहीं कर सकता। टेबलव्यू की ऊंचाई 475 है और छवि की ऊंचाई 400 है, सफेद क्षेत्र के लिए लेबल के साथ 75 छोड़कर।autolayout चेतावनी की कमी

मैं

self.tableView.estimatedRowHeight = 475; 
self.tableView.rowHeight = UITableViewAutomaticDimension; 

किसी भी मदद का उपयोग किया था?

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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(

    "<NSLayoutConstraint:0x174096530 UIImageView:0x1743e9000.top == UITableViewCellContentView:0x17418af80.topMargin + 13>", 
    "<NSLayoutConstraint:0x1740977f0 V:[PFImageView:0x1743e8e00]-(0)-| (Names: '|':UITableViewCellContentView:0x17418af80)>", 
    "<NSLayoutConstraint:0x174097840 V:[UIImageView:0x1743e9000]-(24)-[PFImageView:0x1743e8e00]>", 
    "<NSLayoutConstraint:0x174097890 H:|-(0)-[PFImageView:0x1743e8e00] (Names: '|':UITableViewCellContentView:0x17418af80)>", 
    "<NSLayoutConstraint:0x174097930 H:[PFImageView:0x1743e8e00]-(0)-| (Names: '|':UITableViewCellContentView:0x17418af80)>", 
    "<NSLayoutConstraint:0x174097ac0 PFImageView:0x1743e8e00.width == PFImageView:0x1743e8e00.height>", 
    "<NSLayoutConstraint:0x174097b60 V:[UIImageView:0x1743e9000(30)]>", 
    "<NSLayoutConstraint:0x174092ed0 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x17418af80(375)]>", 
    "<NSLayoutConstraint:0x174092f20 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x17418af80(44)]>" 
) 


Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x174097b60 V:[UIImageView:0x1743e9000(30)]> 

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. 
+0

यह प्रतीत होता है कि UIImageView की ऊंचाई कंस्ट्रेन्ड खत्म हो गया है। ऊंचाई को बदलने वाली बाधाओं की जांच करें और आपको समस्या मिलनी चाहिए। –

+0

रूप @boyfarrell का संकेत है, मैं अपने बाधाओं की एक संक्षिप्त स्केच किया था, और वे आपको नहीं उम्मीद कर रहे हैं कर रहे हैं, संभावना है। केवल 475 की 454pts Y अक्ष में के लिए जिम्मेदार नहीं है, और x- अक्ष अगर PFImageVIew एक ही चौड़ाई/ऊंचाई होने के लिए लगता है विस्तृत 400pts होने जा रही है। हालांकि उस बिंदु पर, यह कुछ स्क्रीन की सीमाओं से अधिक हो जाएगा। और autolayout पर एक संक्षिप्त संदेश: सामान लगेगा जैसे कि यह अभी भी इन संदेशों के बावजूद काम करता है, लेकिन वास्तव में यह बहुत अप्रत्याशित परिणाम हो सकता है। ओएस में सर्वोत्तम अनुमान कर रहा है, लेकिन वह हमेशा सही अनुमान –

उत्तर

12

मैंने वास्तव में छवि की निचली हिस्से से प्राथमिकता को बदलने की समस्या को हल कर दिया। सहायता के लिए धन्यवाद।

+0

यह टिप भी एक मानचित्र दृश्य रोटेशन एज Insets'.bottom == MKMapView – malhal

+0

पर 'को तोड़ने पर त्रुटि ठीक कर आप मेरा दिन बचाया justed नहीं है! लॉग में अब कोई चेतावनी नहीं है :) –

संबंधित मुद्दे