send subview to the back

17,594

Try,

Objective C:

[self.view sendSubviewToBack: yourView];

Swift:

self.view.sendSubview(toBack: yourView)
Share:
17,594

Related videos on Youtube

SirRupertIII
Author by

SirRupertIII

Updated on September 15, 2022

Comments

  • SirRupertIII
    SirRupertIII over 1 year

    I know of a function that brings a view to the front.

      [self.view bringSubviewToFront:myView];
    

    I am wondering if there is a function that sends a subview to the back.

    • CodaFi
      CodaFi over 11 years
      I believe it literally is called -sendSubviewToBack:. LOL