ü建設的UIView,並把圖像作爲視圖backgrond:的UIView有UIImage的背景
self.tmpView = [[UIView alloc] initWithFrame:CGRectMake(20, 70, 280, 295)];
self.tmpView.backgroundColor = [UIColor yellowColor];
self.tmpView.backgroundColor = [UIColor clearColor];
self.tmpView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"CloseUPPicBG.png"]];
的問題是,現在theuiview是用黑色的角落。 我作爲背景放置的圖像是圓角的。
任何解決方案?
該視圖應該是autoreleased,如果它的屬性與attr。非原子,保留。 –