Touch coordinates in iPhone landscape mode app
<p>I am trying to make this <strong>landscape only</strong> iphone app.</p>

<p>I only use this code for this purpose:</p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); }
</code></pre>

<p>However when I click clip subviews checkbox from interface builder, the view is clipped from the middle.</p>

<p>I also don't receive any touch events from outside of view bounds obviously.</p>

<pre><code>- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint fingerPos = [[touches anyObject] locationInView:self.view];
NSLog(@"%f   %f",fingerPos.x,fingerPos.y); }
</code></pre>

<p>only prints for coordinates between 20 and 320 for X. But Y works fine.</p>

<p>When i try to modify bounds by hand, everything works fine; View is positioned and shown correctly, printed coordinates are correct, I receive touch from all of the screen except between 0 and 20 for X. So Left side of the screen is unresponsive to touch events for only 20 pixels. Code I use to modify bounds:</p>

<pre><code>self.view.bounds = CGRectMake(-180.0f, 0.0f, 680.0f, 480.0f);
</code></pre>

<p>What might be causing this? Weird!</p>
