This question is a bit difficult to explain. I have a textfield on top (where the navigation bar is usually is) and when I start editing text, the keyboard shows and auto dims the background. I want to add another UIView below the textfield but have that visible and not dimmed out.

Perfect image that describes what I want is this:
<http://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/Art/keyboard_size.jpg>

![enter image description here](https://i.stack.imgur.com/0LAOK.jpg)
I want to implement something similar like that google search bar underneath the search url bar. Notice how that is not dimmed out? How can I accomplish this?

Thanks!
['https://Stackoverflow.com/questions/17603784', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1212530/']
It is getting the characters from left to right (low to high, 0 to length)

It is appending the characters from right to left.

that reverses them.

```
1 2 3
| | |
\ | /
  X
/ | \
3 2 1

```

First time through the loop, it takes '1' and puts it in the string.

Second time through the loop, it takes '2' and puts it in the string to the left of '1'

Thirst time through the loop, it takes '3' and puts it to the left of '2' and '1'.

When I say "it takes" I'm referring to the code: `input.charAt(i)`

Note that the 'i' gets bigger each time through the loop because of the `i++`
It is actually a badly written program that constantly creates new (immutable) `String` objects while iterating over the characters of `input` from left to right, each time prepending the character to `result`. This is done by the code `input.charAt(i) + result` which puts the character in front of the previous result.

A better implementation would use a `StringBuilder` (which is mutable) to avoid excessive `String` creation.

Like this:

```
public static void main(String args[]) {
    String input = "***NGuyen**Van******A*******";
    StringBuilder builder = new StringBuilder();
    String result;
    for (int i = input.length() - 1; i >= 0; i--) {
        builder.append(input.charAt(i));
    }
    result = builder.toString();

    System.out.println(result);
}

```