WKInterfaceTable.SetNumberOfRows(nint, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit le nombre total de lignes dans la table, qui sont toutes associées à un contrôleur de lignes avec le spécifié rowType..
[Foundation.Export("setNumberOfRows:withRowType:")]
public virtual void SetNumberOfRows(nint numberOfRows, string rowType);
abstract member SetNumberOfRows : nint * string -> unit
override this.SetNumberOfRows : nint * string -> unit
Paramètres
- numberOfRows
- System.System.IntPtr System.nativeint
Nombre de lignes souhaitées dans la table.
- rowType
- String
Identificateur de storyboard associé au type de contrôleur de ligne.
- Attributs
Remarques
rowType doit correspondre à la Identifier valeur associée au contrôleur de ligne dans le storyboard.
Contrairement à iOS, les lignes ne sont pas virtualisées. Apple recommande que les applications Watch utilisent moins de 20 lignes.