X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=iphone%2FClasses%2FDecoderViewController.m;h=0e92b750683af7383295e3478cc0dc3b04f68827;hp=93324842d0e278126c96a292907d8dafe30d8d3b;hb=acd2742d51bf4ab013a016f935b02a108a2c485e;hpb=b0312339295108c937c4c4f6cb247370eb09db27 diff --git a/iphone/Classes/DecoderViewController.m b/iphone/Classes/DecoderViewController.m index 93324842..0e92b750 100644 --- a/iphone/Classes/DecoderViewController.m +++ b/iphone/Classes/DecoderViewController.m @@ -226,14 +226,14 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - // Return YES for supported orientations - return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); + // Return YES for supported orientations + return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview - // Release anything that's not essential, such as cached data + [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview + // Release anything that's not essential, such as cached data } - (void)dealloc {