I. Transparency settings for navigation bar controllers
// set Navigationbar to hidden Self.navigationController.navigationBar.hidden = YES; // set Navigationbar to translucent Self.navigationController.navigationBar.translucent = NO; // Turn Navigationbar into full transparency [Self.navigationController.navigationBar setbackgroundimage:[uiimage imagenamed:@ "7.png "] Forbarmetrics:uibarmetricscompact];
Two. Setting the view's frosted glass effect
//frosted glass effect Uivisualeffectview *visuaview = [[Uivisualeffectview alloc] Initwitheffect:[uiblureffect Effectwithstyle:uiblureffectstylelight]]; = self.view.bounds; [MyImage Addsubview:visuaview];
Three. Set the background picture of the table view controller or view
1. Set the table View controller background picture
// set the background image for TableView Uiimageview *myimage = [[Uiimageview alloc] initwithimage:[uiimage imagenamed:@ "1.jpg" ]]; = Self.view.frame; Self.tableview. = myimage;
Note that you also want to empty the cell's color at this point.
Cell.backgroundcolor = [Uicolor Clearcolor];
2. Set the view background image
// set a background picture Uiimageview *myimage = [[Uiimageview alloc] initwithimage:[uiimage imagenamed:@ "1.jpg" ]]; = Self.view.frame; [Self.view Addsubview:myimage]; [Self.view sendsubviewtoback:myimage]; // to clear the original color first Self.lyricTableView.backgroundColor = [Uicolor Clearcolor];
Note: Before setting the background color, you should now empty the original view color before setting
Four. Cancel the split line between the TableView cells
// to cancel a cell's split line Self.lyricTableView.separatorStyle = Uitableviewcellseparatorstylenone;
Music Player Project One Knowledge point summary