I am looking for some clarification with regards to view controllers and views. Should one view controller be used exclusively to control one view?
Basically, my portrait view is going to be a 4x3 grid of buttons (within a scrollview). When i rotate the view to landscape, i am going to want maybe a 6x4 grid.
Obviously the functionali...
Why does this NOT correctly wrap the TextBlock and WrapPanel vertically?
<xcdg:DetailConfiguration.Headers>
<DataTemplate>
<WrapPanel Orientation="Vertical" Height="Auto">
<TextBlock Name="ecrDocs" FontSize="16" Foreground="SteelBlue" Text="{Binding RelativeSource={RelativeSource Self},
Path=(xcdg:Da...
I am pretty new to Android and mobile development in general. I am creating an Android application that plays a video using VideoView after a button is selected. The problem is when you rotate the phone the video restarts. I know its because the activity is destroyed and recreated when it is rotated. So I just locked the video player in ...
I want to use auto resizing mask in iPhone to adjust view in landscape and portrait mode. The problem is when I apply width spring from Interface builder, the button changes its size proportionally. But when I apply the same spring by code i.e.
[self.view setAutoresizesSubviews:YES];
[testButton setAutoresizingMask:UIViewAutoresizing...
Hi to all
I'm having Application based on quiz. it is collection of questionnaires, images. its xml based database and i accessed its only one class that is Uitableview in one tableview through access upto 56 questions and 25 images.
Actually i want to run app on both modes that first one is landscape and another one is portrait.
My pro...
In my app button presents on navigationcontroller when I run app in portrait mode as well as landscape mode and clicked button due this it shows actionsheet according to their mode but when i clicked button in portrait mode and then truns the simulator in landscape mode and its also occur this same situation in viseversa form action shee...
An app consists rootviewcontroller(rvc) & its detailviewcontroller(dvc) and i wanna run app on both mode. rvc holds uiimageview & then tableview and dvc holds two buttons my problem is that
when i build & run the app its shows mvc perfectly on both mode but when i clicked one of table'cell the control goes to dvc in the case the simulat...
Is it necessary to make my app work in both orientations "Landscape" and "Portrait" so that apple won't reject the app?
I'm planning to create my app that works only in landscope mode.
Can I do this?
...
In the MainViewController I have to adjust some images on orientation change. Easy - just add the code to the willAnimateRotationToInterfaceOrientation: callback
- (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration {
NSLog(@"orientation: %@", name(orientation));
..
...
I am finding that my layouts tend to look great in one orientation but if I change the phone's orientation, things are a mess. For example on one screen I have 6 large buttons that look great in portrait orientation but if the user changes phone orientation, those buttons get cut off in portrait.
Do I need to code two layouts for every...
I have been attempting to make my pdf reader app remember which page its on when changing orientation (at the moment it goes back to the first page every time the orientation switches). Here is my working code:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)durat...
There're an UINavigationController with rootViewController (as root) and secondViewController (as a child). The rootViewController should be able to rotate to any orientation (that works as expected, I just override the shouldAutorotateToInterfaceOrientation), but the secondViewController should work in Portrait mode only (here, I set th...
I have developed an app for the iPhone, and I know Apple would like any apps to support multiple orientations on the iPad, but I'm wondering if it's actually required: Will the iPhone app be rejected for only supporting one orientation?
Thanks in advance
...
Hello,
How to check the orientation of device at any point off time programmatically in iPhone ?
Thank You.
...
Hey,
I'm having a hard time figuring out what I'm doing wrong. I want do read the direction my iPhone is facing to. Here's my code:
self.man = [[CLLocationManager alloc] init] ;
self.man.delegate = self;
self.man.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;
self.man.headingFilter = kCLHeadingFilterNone;
if([self.man headingA...
Looked at other posts but, haven't seen the answer I'm looking for...
I have two layouts: layout-port and layout-land.
If I run the app with emulator or device, either vertically or horizontally, the app runs fine with the correct layouts.
However, if I rotate either the emulator or device, the app exits. There's no crashing, perse',...
I want my view to change when it has changed to horizontal orientation:
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
setContentView(R.layout.chartsactivity);
}
This works, but I want my layout to switch back when it is in portrait mode.
...
i m developing ipad app and using MPMoviePlayerViewController in it to play videos.. it works ok everything.i set frame of MPMoviePlayerViewController in potrait mode.that is half of potrait scree. but in landscape mode i want movie to play in full screen. so i set frame accordingly. now when i launch app in potrait mode .. i works ok as...
I have an an iphone app and am using shouldAutorotateToInterfaceOrientation to determine when to autorotate. On the iphone, I specify that UIInterfaceOrientationPortrait is the only allowed orientation; On the iPad, I just return YES (ie all allowed), like so:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interf...
I am having trouble setting up landscape mode in my application.
I have a /res folder that contains a layout folder and a layout-land folder
layout
-----main.xml
layout-land
-----main.xml
My /layout-land/main.xml contains different UI elements than /layout/main.xml. How can I map each layout appropriately when the user has switched ...