父视图不会更新自动布局中的框架

时间:2017-06-29 03:37:28

标签: ios autolayout

我无法在自动布局中更新视图框。 here is the result while debugging the auto layout

Here is the constraints for vwLabelsAndInfoButtonContainer.

Here is the constraints for txtInfo

Here is the constraints for btnRouteMe

[self setNeedsLayout];
[self.txtInfo setFont:WWLATOBLACK(15)];
[self.txtInfo setTextColor:ColorFromRGB(COLOR_CALLOUTINFO)];
self.txtInfo.lineBreakMode = NSLineBreakByTruncatingTail;
self.txtInfo.text = self.result[[NSString stringWithFormat:@"%@%@",SERVER_NAME, [LocalizationHelper getExtForLocale]]];
self.txtInfo.numberOfLines = 0;

0 个答案:

没有答案