Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a subview to background / back of stack?

I've created a blur background view which I would like to apply to a particular UIview which contains a number of elements - I would like the new view to be placed behind all other elements.

This is my current code -

 [_feedUIView addSubview:blurView ];

All works fine - but it places the new view in front - how can I place it at the back?

like image 585
Dancer Avatar asked Dec 08 '22 12:12

Dancer


1 Answers

Just use this after adding it:

[_feedUIView sendSubviewToBack:blurView]
like image 189
Antonio MG Avatar answered Dec 11 '22 10:12

Antonio MG