I would like to change the value of a recursive array.

One array provides the `path` to the variable to change:

`$scopePath` represents the path to change.

For example `if $scopePath==Array("owners","products","categories")`

and $tag="price";

I would like to change `$value["owners"]["products"]["categories"]["tag"]` to `true`

```
    $u=$value;
    foreach ($scopePath as $i => $s) {
        if (!isset($u[$s]))
            $u[$s]=Array();
        $u=$u[$s];
    }
    $u[$tag]=true;

```

I know the problem is because of the line $u=$u[$s] because this changes the reference to $u, but I don't know how to fix it.
['https://Stackoverflow.com/questions/17041685', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1993501/']
I don't think I'm allowed to post the code, but the above post mentioning the WWDC sample code is correct. Here is the link: <https://developer.apple.com/downloads/index.action?name=WWDC%202013>

The file you're looking for is the category on UIImage, and the method is applyLightEffect.

As I noted above in a comment, the Apple Blur has saturation and other things going on besides blur. A simple blur will not do... if you are looking to emulate their style.
You can directly make your Background Blur using "Visual Effect View with Blur" and "Visual Effect View with Blur and Vibrancy".

All you have to do for making Blur Background in iOS Application is...

1. Go and search for "Visual Effect View with Blur" in Object Library

[Step 1 Image](https://i.stack.imgur.com/Qy0Vf.png)

2. Drag the "Visual Effect View with Blur" in your Storyboard and setup it...

[Step 2 Image](https://i.stack.imgur.com/hn3i2.png)

3. Finally... You make your App Background Blur!

[Application Layout before clicking on any Button!](https://i.stack.imgur.com/uyO2w.png)

[Application View After Clicking on Button which makes the whole application background Blur!](https://i.stack.imgur.com/DS7My.png)