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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -