Question: I have a Navigation Controller in my main view. And I use the following code to add the navigation view when needed.

[self.view addSubview:navController.view];

However, the the navigation bar is not positioned correctly. I have posted a pic below. Anyone knows what is the potential problem?

![alt text](https://i.stack.imgur.com/jxZ7J.png)

Answer: 
Simply put all invoice nos in a IN statement and run this select statement in a single connection.
I believe you may want to consider a different approach if you consistently are processing 700 to 1000 or more invoice numbers at one time why not send all the invoice numbers down in a single query instead of many individual query's. As an example you could use an sql in list to do this as in below.

```
select
 *
from
 ivoice_table
where
 invoice_table.invoice_number in (123,124,125,126,127,128 etc....)

```

Enjoy!