UITableView.RegisterNibForCellReuse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RegisterNibForCellReuse(UINib, NSString) |
指定要用於具有指定識別碼之儲存格的 nib 檔案。 |
RegisterNibForCellReuse(UINib, String) |
使用指定的識別碼字串,註冊包含) UITableViewCell 的 nib 物件 (。 |
RegisterNibForCellReuse(UINib, NSString)
指定要用於具有指定識別碼之儲存格的 nib 檔案。
[Foundation.Export("registerNib:forCellReuseIdentifier:")]
public virtual void RegisterNibForCellReuse (UIKit.UINib nib, Foundation.NSString reuseIdentifier);
abstract member RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit
override this.RegisterNibForCellReuse : UIKit.UINib * Foundation.NSString -> unit
參數
- reuseIdentifier
- NSString
- 屬性
適用於
RegisterNibForCellReuse(UINib, String)
使用指定的識別碼字串,註冊包含) UITableViewCell 的 nib 物件 (。
public void RegisterNibForCellReuse (UIKit.UINib nib, string reuseIdentifier);
member this.RegisterNibForCellReuse : UIKit.UINib * string -> unit
參數
- nib
- UINib
從 nib 檔案建立的 nib 物件。 這個值不能是 null
。
- reuseIdentifier
- String
要作為儲存格識別碼的字串。 這個值不能是 null
。
備註
在 nib 物件向資料表檢視註冊之後,如果重複使用佇列中還沒有實例,使用正確的識別碼呼叫 DequeueReusableCell(NSString) 會導致資料表檢視具現化 nib 物件中的資料格。