Share via


UITableView.DequeueReusableCell 메서드

정의

오버로드

DequeueReusableCell(NSString)

지정된 ReuseIdentifier를 사용하여 만든 재사용 가능한 테이블 뷰 셀을 반환합니다.

DequeueReusableCell(String)

지정된 ReuseIdentifier를 사용하여 만든 재사용 가능한 테이블 뷰 셀을 반환합니다.

DequeueReusableCell(NSString, NSIndexPath)

지정된 reuseIdentifierindexPath에 대해 재사용 가능한 테이블 뷰 셀을 반환합니다.

DequeueReusableCell(String, NSIndexPath)

에 의해 reuseIdentifier 식별되고 에 있는 재사용 가능한 셀을 indexPath반환합니다.

DequeueReusableCell(NSString)

지정된 ReuseIdentifier를 사용하여 만든 재사용 가능한 테이블 뷰 셀을 반환합니다.

public UIKit.UITableViewCell DequeueReusableCell (Foundation.NSString identifier);
member this.DequeueReusableCell : Foundation.NSString -> UIKit.UITableViewCell

매개 변수

identifier
NSString

요청되는 셀 형식을 식별하는 문자열입니다.

반환

UITableViewCell 와 연결된 identifier이거나null, 큐에 특정 identifier가 있는 셀이 없는 경우 입니다.

설명

셀 재사용 캐시는 효율성에 중요하며 애플리케이션 개발자는 동적 테이블에 사용해야 합니다.

iOS 6 이상을 대상으로 하는 애플리케이션 개발자는 또는 RegisterNibForCellReuse(UINib, String)를 사용해야 RegisterClassForCellReuse(Type, String) 합니다. 클래스가 UITableViewCell 등록되면 에 DequeueReusableCell(String, NSIndexPath) 대한 호출은 를 반환하는 대신 필요에 따라 새로 인스턴스화된 개체를 반환합니다 null.

애플리케이션 개발자는 인덱스 경로에 대해 적절한 크기의 를 UITableViewCell 반환하는 를 DequeueReusableCell(NSString, NSIndexPath)사용하는 것을 선호해야 합니다.

추가 정보

  • <xref:UIKit.UITableView.RegisterClassForCellReuse>
  • <xref:UIKit.UITableView.RegisterNibForCellReuse>

적용 대상

DequeueReusableCell(String)

지정된 ReuseIdentifier를 사용하여 만든 재사용 가능한 테이블 뷰 셀을 반환합니다.

[Foundation.Export("dequeueReusableCellWithIdentifier:")]
public virtual UIKit.UITableViewCell DequeueReusableCell (string identifier);
abstract member DequeueReusableCell : string -> UIKit.UITableViewCell
override this.DequeueReusableCell : string -> UIKit.UITableViewCell

매개 변수

identifier
String

요청되는 셀 형식을 식별하는 문자열입니다.

반환

UITableViewCell 와 연결된 identifier이거나null, 큐에 특정 identifier가 있는 셀이 없는 경우 입니다.

특성

설명

셀 재사용 캐시는 효율성에 중요하며 애플리케이션 개발자는 동적 테이블에 사용해야 합니다.

iOS 6 이상을 대상으로 하는 애플리케이션 개발자는 또는 RegisterNibForCellReuse(UINib, String)를 사용해야 RegisterClassForCellReuse(Type, String) 합니다. 클래스가 UITableViewCell 등록되면 에 DequeueReusableCell(String, NSIndexPath) 대한 호출은 를 반환하는 대신 필요에 따라 새로 인스턴스화된 개체를 반환합니다 null.

애플리케이션 개발자는 인덱스 경로에 대해 적절한 크기의 를 UITableViewCell 반환하는 를 DequeueReusableCell(NSString, NSIndexPath)사용하는 것을 선호해야 합니다.

추가 정보

  • <xref:UIKit.UITableView.RegisterClassForCellReuse>
  • <xref:UIKit.UITableView.RegisterNibForCellReuse>

적용 대상

DequeueReusableCell(NSString, NSIndexPath)

지정된 reuseIdentifierindexPath에 대해 재사용 가능한 테이블 뷰 셀을 반환합니다.

[Foundation.Export("dequeueReusableCellWithIdentifier:forIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UITableViewCell DequeueReusableCell (Foundation.NSString reuseIdentifier, Foundation.NSIndexPath indexPath);
abstract member DequeueReusableCell : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UITableViewCell
override this.DequeueReusableCell : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UITableViewCell

매개 변수

reuseIdentifier
NSString

요청되는 셀 형식을 식별하는 문자열입니다.

indexPath
NSIndexPath

요청되는 특정 셀입니다.

반환

UITableViewCell과 관련된 identifier입니다.

특성

설명

이 메서드는 적절한 크기의 UITableViewCell를 호출 GetHeightForRow(UITableView, NSIndexPath) 하고 반환하므로 셀 재사용을 호출하는 데 선호되는 방법입니다.

이 메서드는 또는 RegisterNibForCellReuse(UINib, String)를 사용하여 RegisterClassForCellReuse(Type, String) 셀 등록 앞에 있어야 합니다. 그렇지 않으면 NSInternalInconsistencyException 런타임에 예외가 발생합니다.

셀 재사용 캐시는 효율성에 중요하며 애플리케이션 개발자는 동적 테이블에 사용해야 합니다.

추가 정보

  • <xref:UIKit.UITableView.RegisterClassForCellReuse>
  • <xref:UIKit.UITableView.RegisterNibForCellReuse>

적용 대상

DequeueReusableCell(String, NSIndexPath)

에 의해 reuseIdentifier 식별되고 에 있는 재사용 가능한 셀을 indexPath반환합니다.

public UIKit.UITableViewCell DequeueReusableCell (string reuseIdentifier, Foundation.NSIndexPath indexPath);
member this.DequeueReusableCell : string * Foundation.NSIndexPath -> UIKit.UITableViewCell

매개 변수

reuseIdentifier
String
indexPath
NSIndexPath

반환

적용 대상