UITableView.AutomaticDimension 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示與常數 UITableViewAutomaticDimension 相關聯的值
[Foundation.Field("UITableViewAutomaticDimension", "UIKit")]
public static nfloat AutomaticDimension { get; }
member this.AutomaticDimension : nfloat
屬性值
- 屬性
備註
當您想要 UITableView 使用預設值時,請從 UITableViewSource (或 UITableViewDelegate) 方法傳回這個值,以要求維度計量。 例如,從 GetHeightForHeader(UITableView, nint) 或 GetHeightForFooter(UITableView, nint) 傳回這個常數,而資料表檢視將會自動使用高度,以分別容納或 TitleForFooter(UITableView, nint) 傳 TitleForHeader(UITableView, nint) 回的值。