landscape

The nav bar doesn't resize properly in landscape mode

隐身守侯 提交于 2019-12-11 16:38:18
问题 In IB I created a xib with a navigation bar and a grouped tableview. In landscape mode, the nav bar doesn't resize properly. I tried to change the autosizing mask. I changed it from IB. For the nav bar, I have set flexible width (red arrow) and the edge distances from superview ones are all set except the bottom margin (no red line, that is flexible bottom margin). For the tableview all lines are red except the top margin (so flexible top margin)... the nav bar resizes, but the two buttons on

iPhone camera can't open from landscape application

给你一囗甜甜゛ 提交于 2019-12-11 15:18:17
问题 I am creating a landscape only application using sdk 3.0 that uses mapkit. I need to use iphone camera in my application. But I am getting following warning when I try to open camera. "Can't perform full-screen transition. The fromViewController's view must be within a view that occupies the full screen." The view from which I am calling camera method is mapview with size of 480*320. I have written following code to call camera: UIImagePickerController *picker = [[UIImagePickerController

Android: error occurs when taking a picture in landscape

不想你离开。 提交于 2019-12-11 14:47:50
问题 I am trying to use the built-in camera application to take a photo and view it through an ImageView. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_photo); addButtonListeners(); startCamera(); } private void startCamera() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, PHOTO_TAKEN); } protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if

ItextPdf Width Does Not Expand for Landscape Page

穿精又带淫゛_ 提交于 2019-12-11 14:42:58
问题 I am trying to put a table on a PDF page that has been rotated for landscape in my 'PdfPageEventHelper': public void onStartPage(PdfWriter writer_,Document document_) { writer_.addPageDictEntry(PdfName.ROTATE,PdfPage.LANDSCAPE); } That part seems to be working but when I create my table with 10 columns, setting the width does not seem to work: float sizeY=page.getWidth(); PdfPTable table=new PdfPTable(10); table.setTotalWidth(sizeY); float[] widths=new float[] {1.f,1.5f,4.f,1.f,1.f,1.f,1.f,1

When adding a sub view the view does not resize if the app is in landscape mode

让人想犯罪 __ 提交于 2019-12-11 13:30:00
问题 I have a view that has been created in Interface Builder and configured to resize according to the orientation. If the view is created and added to the display while the application is in portrait mode everything works perfectly. I can then rotate the device/simulator and the view resizes as I would expect. But, if the view is added when the app is in landscape mode it does not resize correctly. The view is created and sized as if the app is still in portrait mode. The view is added with the

UIImagePickerController: Check if returned image is in landscape or portrait? [duplicate]

人走茶凉 提交于 2019-12-11 11:44:38
问题 This question already has answers here : How to know if photo in Landscape or Portrait mode? (2 answers) Closed 6 years ago . So, the UIImagePickerController does not support landscape orientation. However, there is a portion of application where it is essential that the image that comes from the controller is recognized to be either in a portrait or landscape format. I can handle this so far when importing an image from my library using the UIImagePickerController. I just compare the UIImage

Viewing the Graphical Layout Landscape Android

只谈情不闲聊 提交于 2019-12-11 11:15:57
问题 I have been trying to develop an application in a landscape mode so I placed "android: screenOrientation="landscape" in my Manifest. It worked well, however, the graphical layout of my xml files are still not in landscape mode so I cannot design my UI well. Any help? Thanks 回答1: Follow below screenshot 回答2: you should design separate UI for landscape mode and put in layout-land folder. check this link go to res folder in your project, and create a new folder in it name it as layout-land 来源:

How to set certain view controller to be landscape and portrait and certain to be landscape only ? (iOS)

我只是一个虾纸丫 提交于 2019-12-11 11:07:00
问题 How can I set certain view controller to be landscape and portrait and certain to be landscape only? Thanks . 回答1: Step 1. Create a subclass of UINavigationcontroller named like CustomNavController Step 2. initialise CustomNavController instead of UINavigationController in AppdDelegate. Step 3. override following method of UINavigationController in CustomNavController -(NSUInteger) supportedInterfaceOrientations { if([NSStringFromClass([[[self viewControllers] lastObject] class])

Print html table in landscape

别来无恙 提交于 2019-12-11 10:57:45
问题 I have a report dynamically generated from the database, a certain part of this report should be printed inside a table. I would like to print this table in landscape outline put the rest of the report should be printed normally "portrait". So, any ideas how to accomplish that? 回答1: If you create a table and treat it as 100% width relative to the page, then the printer should automatically print to the full page width. Whether you get landscape or portrait depends on which one you choose in

landscape fixed layout epub 3 viewing only 1 page at a time starting from indesign file

自作多情 提交于 2019-12-11 10:42:58
问题 I am creating an indesign cs6 epub3 fixed layout with landscape only mode, viewing only one page at a time. I added the meta <meta property="rendition:layout">pre-paginated</meta> <meta property="rendition:orientation">landscape</meta> <meta property="rendition:spread">none</meta> and I also specified the width and height in css and each xhtml file with <meta name="viewport" content="width=1024, height=768" /> I want the document to appear as one landscape page only, not as a two sides book.