Adding A Background Image In Interface Builder

后端 未结 6 2181
庸人自扰
庸人自扰 2021-02-19 06:34

I\'m trying to add a custom image as a background for my application using Xcode 4.2, but I\'m not too sure how to do it. I can add plain colors as the background in Interface B

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 07:21

    You could also use this Statement in Code.

        [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"foo.bar"]]];
    

提交回复
热议问题