Music Player Project One Knowledge point summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.