Repeating background image in an NSView

前端 未结 3 842
天命终不由人
天命终不由人 2021-02-01 10:28

I am trying to draw a repeating background image in my NSView, I have this till now:

// INIT
- (id)initWithFrame:(NSRect)frame {
  if (self = [super initWithFram         


        
3条回答
  •  感情败类
    2021-02-01 11:05

    Check out RMSkinnedViewon Github!

    EDIT: RMSkinnedView is a NSView subclass where you can set up several options, including rounded corners, background color, background image pattern, etc., directly via the User Defined Runtime Attributes in the Interface Builder.

提交回复
热议问题