Question: I have a `UIScrollView` inside a sliding `UIView`. The sliding `UIView` should be able to reach the top of the navigation bar, and if the user is still dragging their finger, the `UIScrollView` inside should start to slide upwards as well. Likewise, if you slide the `UIScrollView` down and you reach the top of the content, the sliding `UIView` should start to slide down.

I can't get this behavior to work the way I want it to. I am specifically using Xamarin.iOS library, but I can translate Objective-C into C# if someone can just point me in the right direction with this.

Thanks!

Answer: 
Yes, you need two commands for this. `printf '%s|' "${array[@]}"; echo` is perfectly conventional.

Alternately, if you don't want the trailing `|`, you can temporarily modify `IFS` to use your chosen separator as its first character, and use `"${array[*]}"`:

```
IFS="|$IFS"; printf '%s\n' "${array[*]}"; IFS="${IFS:1}"

```
If you don't want to have the `|` be printed, you could also remove it and just put in a space or whatever seperator you want to use (e.g. , or -):

`printf '%s ' "${arr1[@]}" ; printf '\n'`

If you need this more often you should use a function, due to writing the same code over and over is not the best way:

```
print_array ()
{
  # run through array and print each entry:
  local array
  array=("$@")
  for i in "${array[@]}" ; do
      printf '%s ' "$i"
  done
  # print a new line
  printf '\n'
}

```

usage:

```
print_array "${array_name[@]}"

```

example: 

```
array01=(one two three)
print_array "${array01[@]}"
echo "this should be a new line"

```

output:

```
one two three
this should be a new line

```