4

I am trying to set a background image for my main superview in the story board editor without creating another view(just for a background image). I can change the class of my main view to UIImageView, but the editor will not show me the option to specify a background image. How can I make this work?

4

1 回答 1

4

这是可能的,但您不会从情节提要中获得视觉反馈。在身份检查器 (cmd+option+3) 下,有一个用于设置用户定义的运行时属性的窗格,并且将 设置backgroundColor为 a[UIColor colorWithPatternImage:]应该可以正常工作。但是,为了清楚起见,我会将这类东西保留在viewDidLoad-method中

于 2013-03-19T13:38:52.047 回答