iOS autolayout visual format language translate -


मैं निम्नलिखित बाधा है:

  [NSLayoutConstraint constraintsWithVisualFormat: "@ वी: | [ drawerView (== tapView)] | " विकल्प: 0 मीट्रिक: विचारों शून्य: viewDictionary]  

मैं इसके साथ कुछ एनीमेशन क्या करना चाहते हैं और इसलिए मैं इसे parameterised की आवश्यकता है। मैं एक ही बात लेकिन एपीआई का उपयोग करना चाहते हैं। यह वही है जो मैंने करने की कोशिश की लेकिन यह काम नहीं करता है:

  [एनएसएलयूट कंटेंट प्रतिबंध के साथहम ITemem: ड्रॉवरदृश्य विशेषता: एनएसएलआउटअट्रिब्यूटहैइट संबंधितः NSLayoutRelationEqual toItem: self.drawerMenuVC.tapView विशेषता: NSLayoutAttributeHeight गुणक: 1.0 निरंतर: 0]  

क्या मैं चाहता हूँ दोनों विचारों बराबर ऊंचाई है।

< p> इस तरह एक और बाधा जोड़े और यह काम करना चाहिए:

  [NSLayoutConstraint constraintWithItem: drawerView विशेषता: NSLayoutAttributeHeight relatedBy: NSLayoutRelationEqual toItem: शून्य विशेषता: NSLayoutAttributeNotAnAttribute multiplie आर: 1.0 निरंतर: yourHeightValue];  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -