How to bring subview to front in interface builder without changing its position
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I want to ask a simple question how can I temporary bring a subview to front to view its element without changing its position by dragging and dropping. The problem i face all the time is i forgot to put the views back to there position and that causes lot of trouble specially if you are working on the view that have large number of subviews.
Question : Is there any shortcut or any functionality that can show the view temporary without dragging, changing its frame or making any changes in its hierarchy.
For a view controller like this :-

ios xcode interface-builder
|
show 1 more comment
I want to ask a simple question how can I temporary bring a subview to front to view its element without changing its position by dragging and dropping. The problem i face all the time is i forgot to put the views back to there position and that causes lot of trouble specially if you are working on the view that have large number of subviews.
Question : Is there any shortcut or any functionality that can show the view temporary without dragging, changing its frame or making any changes in its hierarchy.
For a view controller like this :-

ios xcode interface-builder
please try this...[self.view bringSubviewToFront:YOUR_VIEW_NAME];
– Nirav Kotecha
Jan 3 at 7:26
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24
|
show 1 more comment
I want to ask a simple question how can I temporary bring a subview to front to view its element without changing its position by dragging and dropping. The problem i face all the time is i forgot to put the views back to there position and that causes lot of trouble specially if you are working on the view that have large number of subviews.
Question : Is there any shortcut or any functionality that can show the view temporary without dragging, changing its frame or making any changes in its hierarchy.
For a view controller like this :-

ios xcode interface-builder
I want to ask a simple question how can I temporary bring a subview to front to view its element without changing its position by dragging and dropping. The problem i face all the time is i forgot to put the views back to there position and that causes lot of trouble specially if you are working on the view that have large number of subviews.
Question : Is there any shortcut or any functionality that can show the view temporary without dragging, changing its frame or making any changes in its hierarchy.
For a view controller like this :-

ios xcode interface-builder
ios xcode interface-builder
edited Jan 3 at 16:28
rmaddy
246k27328391
246k27328391
asked Jan 3 at 7:04
dreamBegindreamBegin
1,7141933
1,7141933
please try this...[self.view bringSubviewToFront:YOUR_VIEW_NAME];
– Nirav Kotecha
Jan 3 at 7:26
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24
|
show 1 more comment
please try this...[self.view bringSubviewToFront:YOUR_VIEW_NAME];
– Nirav Kotecha
Jan 3 at 7:26
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24
please try this...
[self.view bringSubviewToFront:YOUR_VIEW_NAME];– Nirav Kotecha
Jan 3 at 7:26
please try this...
[self.view bringSubviewToFront:YOUR_VIEW_NAME];– Nirav Kotecha
Jan 3 at 7:26
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24
|
show 1 more comment
2 Answers
2
active
oldest
votes
If you need your views to be readily accessible for viewing/editing without having to rearrange them, I would actually recommend breaking them out into their own view and then stitching them together in the correct order in your code. This will ensure that all elements will be put in the proper order and will always be easily editable. Something like this:

And then in your code, in somewhere like viewDidLoad:
[self.view addSubview:view2];
[self.view addSubview:view3];
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
add a comment |
FYI, for those who are wondering, the view closest to the bottom of the list (on the left) will show in the front. So in the case below, view 'a' will be in front of 'b' and 'b' will be in front of 'c'
XIB:
did you read the question?
– dreamBegin
Feb 27 at 5:52
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%2f54017749%2fhow-to-bring-subview-to-front-in-interface-builder-without-changing-its-position%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you need your views to be readily accessible for viewing/editing without having to rearrange them, I would actually recommend breaking them out into their own view and then stitching them together in the correct order in your code. This will ensure that all elements will be put in the proper order and will always be easily editable. Something like this:

And then in your code, in somewhere like viewDidLoad:
[self.view addSubview:view2];
[self.view addSubview:view3];
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
add a comment |
If you need your views to be readily accessible for viewing/editing without having to rearrange them, I would actually recommend breaking them out into their own view and then stitching them together in the correct order in your code. This will ensure that all elements will be put in the proper order and will always be easily editable. Something like this:

And then in your code, in somewhere like viewDidLoad:
[self.view addSubview:view2];
[self.view addSubview:view3];
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
add a comment |
If you need your views to be readily accessible for viewing/editing without having to rearrange them, I would actually recommend breaking them out into their own view and then stitching them together in the correct order in your code. This will ensure that all elements will be put in the proper order and will always be easily editable. Something like this:

And then in your code, in somewhere like viewDidLoad:
[self.view addSubview:view2];
[self.view addSubview:view3];
If you need your views to be readily accessible for viewing/editing without having to rearrange them, I would actually recommend breaking them out into their own view and then stitching them together in the correct order in your code. This will ensure that all elements will be put in the proper order and will always be easily editable. Something like this:

And then in your code, in somewhere like viewDidLoad:
[self.view addSubview:view2];
[self.view addSubview:view3];
answered Jan 3 at 15:19
Stonz2Stonz2
5,03043353
5,03043353
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
add a comment |
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
Thank you for your suggestion but i have clearly mentioned in my question i want to do it in interface builder and just for a quick review of view, there are so many ways to do that and i know them too.
– dreamBegin
Jan 4 at 4:34
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
@dreamBegin If you're just looking for a quick review and don't need to do any editing, just drag the view in question out to the canvas of IB to check it, and then ctrl-z to put it back.
– Stonz2
Jan 4 at 16:12
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
I know this already as i have mentioned already in the question but sometimes things get heavy if we forgot to do ctrl-z. i wanted to know that time if there is a shortcut or something like where we hold a key and select the view the view gets highlighted but I'm confirmed now there is no such type of functionality in X-Code. By the way i appreciate your efforts.
– dreamBegin
Jan 5 at 4:02
add a comment |
FYI, for those who are wondering, the view closest to the bottom of the list (on the left) will show in the front. So in the case below, view 'a' will be in front of 'b' and 'b' will be in front of 'c'
XIB:
did you read the question?
– dreamBegin
Feb 27 at 5:52
add a comment |
FYI, for those who are wondering, the view closest to the bottom of the list (on the left) will show in the front. So in the case below, view 'a' will be in front of 'b' and 'b' will be in front of 'c'
XIB:
did you read the question?
– dreamBegin
Feb 27 at 5:52
add a comment |
FYI, for those who are wondering, the view closest to the bottom of the list (on the left) will show in the front. So in the case below, view 'a' will be in front of 'b' and 'b' will be in front of 'c'
XIB:
FYI, for those who are wondering, the view closest to the bottom of the list (on the left) will show in the front. So in the case below, view 'a' will be in front of 'b' and 'b' will be in front of 'c'
XIB:
edited Feb 26 at 18:21
Zoe
13.3k85386
13.3k85386
answered Feb 26 at 18:15
MendoMendo
83
83
did you read the question?
– dreamBegin
Feb 27 at 5:52
add a comment |
did you read the question?
– dreamBegin
Feb 27 at 5:52
did you read the question?
– dreamBegin
Feb 27 at 5:52
did you read the question?
– dreamBegin
Feb 27 at 5:52
add a comment |
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%2f54017749%2fhow-to-bring-subview-to-front-in-interface-builder-without-changing-its-position%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

please try this...
[self.view bringSubviewToFront:YOUR_VIEW_NAME];– Nirav Kotecha
Jan 3 at 7:26
There is no other way. just drag your view to the top of hierarchy and it will be visible to you in storyboard.
– Viren Malhan
Jan 3 at 7:49
read the question first @NiravKotecha
– dreamBegin
Jan 3 at 9:15
i know that already lets see if someone come up with a solution @VirenMalhan
– dreamBegin
Jan 3 at 9:17
If you don't need it, temporarily put top-most view alpha value to zero (0). That will do the trick since views with very low alpha are not responsive. Hope this helps.
– manta
Jan 3 at 10:24