autolayout

Content Of UITableviewcell need to repeat and maintain UITableviewcell Height Dynamic

只谈情不闲聊 提交于 2020-01-17 05:53:28
问题 Here i have attached image in my UITableviewcell after UIButton (Show more). There are set of UIButton (btnCommentPic), UIButton (btnCommentName), UIlabel (tweetLabel), UIlabel (lblNotifyDate1)). I want to repeat this set many times means 2 times or 3 times and so on after show more. How can i achieve it? Guide me please. Code link : https://drive.google.com/file/d/0B5mabdphYDhzWEZWQllzLUZMdzA/view?usp=sharing Expected Layout:- 来源: https://stackoverflow.com/questions/39874962/content-of

Flexible horizontal spacing between ui labels

对着背影说爱祢 提交于 2020-01-17 04:36:12
问题 I am using auto layout in storyboard with all resolution support,but I am stuck on one thing that.I want flexible horizontal spacing between my labels using constraints.Please see screenshot for more details. This is a 4.7inch screen.This screen is correct as I designed for particularly this screen 4 inch screen 5.5 inch IPad screen Please help to manage my labels spacing equally in all supported resolutions with auto layout and constraints. Edit This is my view hierarchy and it is also a

Autolayout causing UILabel to resize with unwanted padding

只谈情不闲聊 提交于 2020-01-17 03:09:33
问题 I have a customized UITableViewCell that has an image on the left and two UILabels on the right. The top edge of the first label is horizontally aligned with the top of the image, and the second label has its bottom edge aligned with the bottom of the image. The second label displays a larger content and I'm hoping that it could resize vertically to show more content but it should not interfere with the top label(for which I've set a vertical spacing constraint between the top label and the

IOS/Autolayout: Make UILabel go to more than one line with Autolayout

…衆ロ難τιáo~ 提交于 2020-01-16 10:37:06
问题 I need to get a UILabel to go to more than one line if text requires with autolayout. In code and also in storyboard for good measure I have set numberOfLines to 0 and wordwrapping on and I've also called sizeToFit . The full amount of text will display on multiple lines if I set the height constraint for the label to a large enough value such = 200. But with short text, it does not contract, leaving a lot of white space. But if I set the height constraint to a lower value such as >=21 then

Self sizing Cells,. Autolayout and hidden UIViews

本小妞迷上赌 提交于 2020-01-16 00:52:24
问题 i am using Autolayout to set automatically the height of a cell. But i want to use some hidden UIViews in my Cells. So in some rows they should be hidden. The problem here is, if the label is still hidden it gets recognized by autolayout and it uses the space. So i guess i need to update the height of my label, or the height of my Constraints. What is the correct way if i am using Autolayout to hide UIElements in a Cell? How can i update an existing (from Storyboard) Constraint? Edit: Found

AutoLayout with size classes: Different spacing depending on iPhone screen size

元气小坏坏 提交于 2020-01-15 18:00:52
问题 I have a UIViewController set up in an UIStoryboard in Interface Builder using size classes. This looks good on an iPhone 5 with the 4" screen, but on the 5.5" screen of the iPhone 6 Plus the elements are too cramped in the top area of the device. I want to increase the constant of the spacing constraints on iPhone 6 and 6 Plus. As far as I was able to see that's not possible with size classes, as there is only one size class for all iPhone displays (no matter if 3.5" or 5.5"). What is the

AutoLayout with size classes: Different spacing depending on iPhone screen size

允我心安 提交于 2020-01-15 17:58:31
问题 I have a UIViewController set up in an UIStoryboard in Interface Builder using size classes. This looks good on an iPhone 5 with the 4" screen, but on the 5.5" screen of the iPhone 6 Plus the elements are too cramped in the top area of the device. I want to increase the constant of the spacing constraints on iPhone 6 and 6 Plus. As far as I was able to see that's not possible with size classes, as there is only one size class for all iPhone displays (no matter if 3.5" or 5.5"). What is the

AutoLayout with size classes: Different spacing depending on iPhone screen size

烂漫一生 提交于 2020-01-15 17:58:11
问题 I have a UIViewController set up in an UIStoryboard in Interface Builder using size classes. This looks good on an iPhone 5 with the 4" screen, but on the 5.5" screen of the iPhone 6 Plus the elements are too cramped in the top area of the device. I want to increase the constant of the spacing constraints on iPhone 6 and 6 Plus. As far as I was able to see that's not possible with size classes, as there is only one size class for all iPhone displays (no matter if 3.5" or 5.5"). What is the

UIView-Encapsulated-Layout with UICollectionView in UIViewController embed in view

不打扰是莪最后的温柔 提交于 2020-01-15 07:59:25
问题 For some reason, using a collection view inside a view controller which is embeded throws UIView-Encapsulated-Layout on the collection views constraints.. i can't set height or top/bottom margins, Any ideas as to why this happens? I've been adding constraints through storyboard, I've even tried adding them programmatically 来源: https://stackoverflow.com/questions/27714826/uiview-encapsulated-layout-with-uicollectionview-in-uiviewcontroller-embed-in-vi

UIView-Encapsulated-Layout with UICollectionView in UIViewController embed in view

你离开我真会死。 提交于 2020-01-15 07:59:10
问题 For some reason, using a collection view inside a view controller which is embeded throws UIView-Encapsulated-Layout on the collection views constraints.. i can't set height or top/bottom margins, Any ideas as to why this happens? I've been adding constraints through storyboard, I've even tried adding them programmatically 来源: https://stackoverflow.com/questions/27714826/uiview-encapsulated-layout-with-uicollectionview-in-uiviewcontroller-embed-in-vi