Hello,
I’m trying to set up an iPad test application, window-based, where I have a single view controller and a single view. When I rotate the iPad, I want the orientation of the toolbar to change, but not that of the view itself. For example, a sort of background view that you work in is fixed to the device, but the status bar and tool...
Hi Forum
Getting a view's bounds rect while in Landscape Mode returns the wrong sizes:
(I know there's been a lot of posts on Landscape mode, but nothing on this problem.)
Starting from a new UIView Template Project, I'm adding a single UIView to the ViewController in Interface Builder (in Landscape Mode) and setting the view size to...
Can anyone tell me how to use the UIImagePickerController (camera and album) delegates determine the image's orientation, rotate accordingly, and assign it to a UIImageView?
...
I have two view controllers each with separate views. I switch between these views when a button is touched. Both of these view controllers are set to autorotate in landscape mode (AKA no support for portrait mode). I didn't have this issue before (or didn't notice it) but now when I switch between the views and rotate the iPad, the stat...
ViewController1 uses portrait orientation. ViewController2 uses landscape orientation. If I use:
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait];
Will my app get rejected? If I can't use this call, what is my other option? Simply rotating the images won't be sufficient since I need to use ac...
Hi
I am developing an iPad app which starts with a graphical menu. When the user rotates to landscape, the user sees the same menu, but it shows more of detail in the width and less in the height (natch). However, when the rotation animation happens, the default black masking is seen around the edges.
Is there any way of switching this...
In Interface Builder, what settings do I change for a view so that it fills the screen regardless of the orientation?
I am converting an iPhone app, and the views don't fill the screen unless I set the height and width to 768x1024. But when the ipad is horizontal it of course is the wrong size.
...
I am working on an iPad app (which will not be submitted to the App Store) which supports only landscape mode.
Most of the views in the application are pushed onto a UINavigationController with a hidden navigation bar.
When I add the following code in the top view controller in the aforementioned UINavigationController, the new UINavig...
Hello
I'm developing an app for iPad and I try to handle multiple orientation.
My app contains a webview and a loading UIImageView that appears when my webview is loading content.
This UIImageView has a background image that I set in InterfaceBuilder. When I change orientation to landscape, the image is cut.
I'd like the UIImageView t...
Hi,
I have a situation, I have created two different nibs, one in Portrait Mode and other in Landscape mode. I had lots of designs in the view so, i had to opt for two different nibs. Now, I want to toggle the nibs as the interface rotates in the
common viewController
so that I can retain the filled values and the state of the co...
Hi
I have an iPad application with a TabBar , each item of my TabBar is a ViewController that contains a WebView.
When the iPad is in landscape mode and I launch my application, the first ViewController (or item) shows me the webview in landscape mode. But the others ViewControllers/items are still in portrait mode. I have to rotate to...
Hi!
I need to apply different layouts for portrait and landscape orientations of my activity. Besides, I need to show alert if orientation is portrait.
I have specified android:configChanges="orientation|keyboardHidden" in AndroidManifest. I also override onConfigurationChanged method like this:
@Override
public void onConfigurationCh...
In "View Did Load" I'm trying to determine the size of the view so I can appropriately size a subview. I want it to always stretch about the length and width of the screen regardless of orientation.
quest *anview = [[quest alloc] initWithFrame: CGRectMake(50, 50, self.view.frame.size.width-100, self.view.frame.size.height-100)];
self.a...
Hi,
I am trying to use a UISplitViewController for only one tab in my application (the others are using a Navigation Controller and different ViewControllers).
I have added the SplitViewController in the MainWindow.xib (the only way I could get it to work) but I don't add it to the window when didFinishLaunchingWithOptions is called as...
I'm creating a small UIView of size 320 pixels width and 120 pixels height.
I'm using following code to add the view to top most window.
baseview.frame = CGRectMake(0,20,320,120);
UIWindow* window = [[UIApplication sharedApplication] keyWindow];
[window addSubview:baseView];
[window bringSubviewToFront:baseView];
The above code is...
I'm working on a universal iPhone/iPad application. I'm using MonoTouch, but I can take answers in Obj-C (I should be able to decipher it, and MonoTouch's UIKit is 1 to 1 for the most part).
Basically my app has 2 views: a "login" view and a "logged-in" view.
On app startup, my login view is the only subview of my main UIWindow. Afte...
I have subclassed UITableViewCell to make a custom cell for a tableView. I add text and images to the cell's contentView.
Everything looks great in landscape mode (iPad), but no so much when I rotate to portrait. Where is the best place to handle orientation changes so that all the table cells can reposition the contents in its contentV...
I have a view controller that alternates 2 views on every touch. Each of the views overrides the drawRect function.
It works when the iPad is in portrait position but for landscape position, the view is shown in the right orientation only once. After that they always appear in portrait orientation.
What's wrong?
In ViewController:
-...
I have to write a compass app in Android. The only thing the user sees on the screen is a cube with a red wall which has to point north. This is not important. What's important is that I need to rotate that cube accordingly to the rotation of the device itself so that the red wall continues to point north no matter how the phone is being...
I am using a Preview to display what the camera see's on the screen.
I can get everything working fine, surface created, surface set and the surface is displayed.
However it always displays the picture at an incorrect 90 degree angle in portrait mode.
Such as in the picture:
I am aware that using the following code will set the pic...