Changing layout on rotation with multiple views movingHow to change the name of an iOS app?How can I make a UITextField move up when the keyboard is present - on starting to edit?Passing Data between View ControllersiOS: Multi-line UILabel in Auto LayoutHow to use auto-layout to move other views when a view is hidden?Using Auto Layout in UITableView for dynamic cell layouts & variable row heightsiPad Landscape and Portrait different layouts with Size ClassUIImageView missing images in Launch Screen on deviceDifferent layout for landscape and portrait iPad with storyboardXCode: How to change layout of views between landscape and portrait mode
std::tuple sizeof, is it a missed optimization?
What would a biological creature need in order to see the future?
Are language and thought the same?
Why didn't Thatcher give Hong Kong to Taiwan?
Does immunity to damage from nonmagical attacks negate a rogue's Sneak Attack damage?
If p-value is exactly 1 (1.0000000), what are the confidence interval limits?
What is the difference between "wie" and "nach" in "Klingt wie/nach..."
How to anonymously report the Establishment Clause being broken?
'Hard work never hurt anyone' Why not 'hurts'?
What is the significance of 104% for throttle power and rotor speed?
Is mathematics truth?
Finder/Terminal: Find files that contain less than 21 lines of text
Why don't they build airplanes from 3D printer plastic?
How to move UVs by a set amount of pixels?
Has Rey's new lightsaber been seen before in canon or legends?
One hour 10 min layover in Newark; International -> Domestic connection. Enough time to clear customs?
How does speed affect lift?
Would you recommend a keyboard for beginners with or without lights in keys for learning?
Main differences between 5th edition Druid and 3.5 edition Druid
What drugs were used in England during the High Middle Ages?
Question about derivation of kinematics equations
co-son-in-law or co-brother
How to describe hit point damage without talking about wounds
What does "se jouer" mean here?
Changing layout on rotation with multiple views moving
How to change the name of an iOS app?How can I make a UITextField move up when the keyboard is present - on starting to edit?Passing Data between View ControllersiOS: Multi-line UILabel in Auto LayoutHow to use auto-layout to move other views when a view is hidden?Using Auto Layout in UITableView for dynamic cell layouts & variable row heightsiPad Landscape and Portrait different layouts with Size ClassUIImageView missing images in Launch Screen on deviceDifferent layout for landscape and portrait iPad with storyboardXCode: How to change layout of views between landscape and portrait mode
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm working on an app where I've got a design with two similar layouts for horizontal/vertical. And it's on an iPad. I've found other answers but I can't use most of them because I've got two tableviews in my view, which means I can't use xibs. I'm also making it for the iPad so changing layout based on height/width variation doesn't work.
The design I'm trying to achieve is in the pictures below. What I'm having troubles with is moving the two views that are stacked on the right in landscape mode to be next to each other and short in vertial. Also I need to move those four buttons and the right-side table to being below the other two views.
I've tried overriding trait functions as described in this blog post but for the life of me can not get it to work.
I'm looking for any advice anyone could give me. I feel like I've hit a wall and can not figure out how I can implement this.
ios swift ipad
add a comment |
I'm working on an app where I've got a design with two similar layouts for horizontal/vertical. And it's on an iPad. I've found other answers but I can't use most of them because I've got two tableviews in my view, which means I can't use xibs. I'm also making it for the iPad so changing layout based on height/width variation doesn't work.
The design I'm trying to achieve is in the pictures below. What I'm having troubles with is moving the two views that are stacked on the right in landscape mode to be next to each other and short in vertial. Also I need to move those four buttons and the right-side table to being below the other two views.
I've tried overriding trait functions as described in this blog post but for the life of me can not get it to work.
I'm looking for any advice anyone could give me. I feel like I've hit a wall and can not figure out how I can implement this.
ios swift ipad
add a comment |
I'm working on an app where I've got a design with two similar layouts for horizontal/vertical. And it's on an iPad. I've found other answers but I can't use most of them because I've got two tableviews in my view, which means I can't use xibs. I'm also making it for the iPad so changing layout based on height/width variation doesn't work.
The design I'm trying to achieve is in the pictures below. What I'm having troubles with is moving the two views that are stacked on the right in landscape mode to be next to each other and short in vertial. Also I need to move those four buttons and the right-side table to being below the other two views.
I've tried overriding trait functions as described in this blog post but for the life of me can not get it to work.
I'm looking for any advice anyone could give me. I feel like I've hit a wall and can not figure out how I can implement this.
ios swift ipad
I'm working on an app where I've got a design with two similar layouts for horizontal/vertical. And it's on an iPad. I've found other answers but I can't use most of them because I've got two tableviews in my view, which means I can't use xibs. I'm also making it for the iPad so changing layout based on height/width variation doesn't work.
The design I'm trying to achieve is in the pictures below. What I'm having troubles with is moving the two views that are stacked on the right in landscape mode to be next to each other and short in vertial. Also I need to move those four buttons and the right-side table to being below the other two views.
I've tried overriding trait functions as described in this blog post but for the life of me can not get it to work.
I'm looking for any advice anyone could give me. I feel like I've hit a wall and can not figure out how I can implement this.
ios swift ipad
ios swift ipad
asked Mar 28 at 3:12
thecoolwinterthecoolwinter
579 bronze badges
579 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
just give the height and width constraints of the subviews with respect to the superview in ratio it'll work.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389614%2fchanging-layout-on-rotation-with-multiple-views-moving%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
just give the height and width constraints of the subviews with respect to the superview in ratio it'll work.
add a comment |
just give the height and width constraints of the subviews with respect to the superview in ratio it'll work.
add a comment |
just give the height and width constraints of the subviews with respect to the superview in ratio it'll work.
just give the height and width constraints of the subviews with respect to the superview in ratio it'll work.
answered Mar 28 at 3:19
Manish_NainwalManish_Nainwal
2005 bronze badges
2005 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389614%2fchanging-layout-on-rotation-with-multiple-views-moving%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown