Share via


UINavigationBar.SetBackgroundImage 메서드

정의

오버로드

SetBackgroundImage(UIImage, UIBarMetrics)

의 배경 이미지를 변경합니다 barMetrics.

SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

barMetrics의 배경 이미지를 barPosition 설정합니다.

SetBackgroundImage(UIImage, UIBarMetrics)

의 배경 이미지를 변경합니다 barMetrics.

[Foundation.Export("setBackgroundImage:forBarMetrics:")]
public virtual void SetBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIBarMetrics -> unit

매개 변수

backgroundImage
UIImage

배경 이미지를 지우려면 null입니다.

이 매개 변수는 null일 수 있습니다.

barMetrics
UIBarMetrics

도구 모음의 방향을 지정합니다.

특성

설명

이 멤버는 UIAppearance 스타일 지정 시스템에 참여합니다. Appearance 속성 및 메서드를 AppearanceWhenContainedIn(Type[]) 참조하세요.

추가 정보

  • <xref:UIKit.UINavigationBar.GetBackgroundImage>

적용 대상

SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

barMetrics의 배경 이미지를 barPosition 설정합니다.

[Foundation.Export("setBackgroundImage:forBarPosition:barMetrics:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIBarPosition barPosition, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIBarPosition * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIBarPosition * UIKit.UIBarMetrics -> unit

매개 변수

backgroundImage
UIImage

추가될 예정입니다.

이 매개 변수는 null일 수 있습니다.

barPosition
UIBarPosition

보기에서 도구 모음의 위치입니다.

barMetrics
UIBarMetrics

도구 모음의 방향을 지정합니다.

특성

설명

이 멤버는 UIAppearance 스타일 지정 시스템에 참여합니다. Appearance 속성 및 메서드를 AppearanceWhenContainedIn(Type[]) 참조하세요.

추가 정보

  • <xref:UIKit.UINavigationBar.GetBackgroundImage>

적용 대상