i'am trying setup png image tableview's background. following code fine! on iphone simulator. if try run application on iphone device background of tableview remains white (or clear). thing thing way tried set background color. have been trying many ways until following, have same issue.
self.tableview.backgroundcolor = [uicolor clearcolor]; self.tableview.opaque = no; self.tableview.backgroundview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"tableviewbackground.png"]];
thank in advance!
please use following code.
uiimageview *tempimageview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"tableviewbackground.png"]]; [tempimageview setframe:self.tableview.frame]; self.tableview.backgroundview = tempimageview; [tempimageview release];
thanks,
Comments
Post a Comment