I am working on a Today Extension with a dynamically sized table. I have been able to get the table to resize for the content using:
self.preferredContentSize = accountsTable.contentSize
However, I have found that it will not get taller than a certain size (568 px) even though I can tell the table contentSize is larger.
I'm not clear if this is a built-in limit or if there is a way around this to make a larger view. It appears that some previous extensions (Stocks widget) is able to become larger.
Anyone else running into the same behavior. Anyone know if it's possible to make an extension appear larger either immediately or using a "Show All" button like the Stock widget?
本文探讨了iOS 8 Today Extension的最大高度限制问题,并提供了一个计算最大高度的公式。通过实例演示,解释了如何通过调整代码使Extension的视图大小超出默认限制。

被折叠的 条评论
为什么被折叠?



