Why UIView appears different location when load it in navigation bar? The 2019 Stack Overflow Developer Survey Results Are IniPhone Navigation Bar Title text colorProgrammatically get height of navigation barUIView within a UIView not showing upStatus bar and navigation bar appear over my view's bounds in iOS 7Add a UIView above all, even the navigation barSet UIImageView (inside a View) just below translucent UINavigationBarChanging navigation bar color in SwiftHow to hide a navigation bar from first ViewController in Swift?Multi-Colored back button in UINavigationBarCustom NavigationBar shows different location when loading on some devices

Does a dangling wire really electrocute me if I'm standing in water?

What is the accessibility of a package's `Private` context variables?

How to notate time signature switching consistently every measure

Am I thawing this London Broil safely?

How come people say “Would of”?

When should I buy a clipper card after flying to OAK?

Time travel alters history but people keep saying nothing's changed

Deal with toxic manager when you can't quit

How to type this arrow in math mode?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Why do UK politicians seemingly ignore opinion polls on Brexit?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Output the Arecibo Message

Geography at the pixel level

How to deal with fear of taking dependencies

Did Section 31 appear in Star Trek: The Next Generation?

Resizing object distorts it (Illustrator CC 2018)

Why can Shazam fly?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Is a "Democratic" Oligarchy-Style System Possible?

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Are there any other methods to apply to solving simultaneous equations?

Can one be advised by a professor who is very far away?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?



Why UIView appears different location when load it in navigation bar?



The 2019 Stack Overflow Developer Survey Results Are IniPhone Navigation Bar Title text colorProgrammatically get height of navigation barUIView within a UIView not showing upStatus bar and navigation bar appear over my view's bounds in iOS 7Add a UIView above all, even the navigation barSet UIImageView (inside a View) just below translucent UINavigationBarChanging navigation bar color in SwiftHow to hide a navigation bar from first ViewController in Swift?Multi-Colored back button in UINavigationBarCustom NavigationBar shows different location when loading on some devices



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Below type of UIView, I am showing in UINavigationBar.
When I run this on iPhone 5c, when loading view with my NavigationBar then the location of UIView is different and after finished loading it shows actual location.



When I run this on other iPhones it works fine.



I want to know why the NavigationBar appears on different location when loading on only iPhone 5c.





Below is my tried code.



 if colour == "red" 
colorView.backgroundColor = Common.redColor
else
colorView.backgroundColor = Common.greenColor

subtitleLabel.text = NSLocalizedString("Profile", comment: "")
navigationController?.navigationBar.barTintColor = Common.backgroundColor
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.isHidden = false
self.automaticallyAdjustsScrollViewInsets = false
navigationItem.leftBarButtonItems = [backButton, UIBarButtonItem(customView: navigationBarView)]









share|improve this question
























  • based on your question your device UI updation is delay

    – Anbu.Karthik
    Mar 22 at 3:51











  • What I have to do for this?

    – Vikas
    Mar 22 at 4:04











  • try with main thread

    – Anbu.Karthik
    Mar 22 at 4:06











  • same output with using main thread

    – Vikas
    Mar 22 at 4:15











  • Is OS version of iPhone 5C and other iPhones are same?

    – shuvo
    Mar 22 at 5:32

















0















Below type of UIView, I am showing in UINavigationBar.
When I run this on iPhone 5c, when loading view with my NavigationBar then the location of UIView is different and after finished loading it shows actual location.



When I run this on other iPhones it works fine.



I want to know why the NavigationBar appears on different location when loading on only iPhone 5c.





Below is my tried code.



 if colour == "red" 
colorView.backgroundColor = Common.redColor
else
colorView.backgroundColor = Common.greenColor

subtitleLabel.text = NSLocalizedString("Profile", comment: "")
navigationController?.navigationBar.barTintColor = Common.backgroundColor
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.isHidden = false
self.automaticallyAdjustsScrollViewInsets = false
navigationItem.leftBarButtonItems = [backButton, UIBarButtonItem(customView: navigationBarView)]









share|improve this question
























  • based on your question your device UI updation is delay

    – Anbu.Karthik
    Mar 22 at 3:51











  • What I have to do for this?

    – Vikas
    Mar 22 at 4:04











  • try with main thread

    – Anbu.Karthik
    Mar 22 at 4:06











  • same output with using main thread

    – Vikas
    Mar 22 at 4:15











  • Is OS version of iPhone 5C and other iPhones are same?

    – shuvo
    Mar 22 at 5:32













0












0








0








Below type of UIView, I am showing in UINavigationBar.
When I run this on iPhone 5c, when loading view with my NavigationBar then the location of UIView is different and after finished loading it shows actual location.



When I run this on other iPhones it works fine.



I want to know why the NavigationBar appears on different location when loading on only iPhone 5c.





Below is my tried code.



 if colour == "red" 
colorView.backgroundColor = Common.redColor
else
colorView.backgroundColor = Common.greenColor

subtitleLabel.text = NSLocalizedString("Profile", comment: "")
navigationController?.navigationBar.barTintColor = Common.backgroundColor
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.isHidden = false
self.automaticallyAdjustsScrollViewInsets = false
navigationItem.leftBarButtonItems = [backButton, UIBarButtonItem(customView: navigationBarView)]









share|improve this question
















Below type of UIView, I am showing in UINavigationBar.
When I run this on iPhone 5c, when loading view with my NavigationBar then the location of UIView is different and after finished loading it shows actual location.



When I run this on other iPhones it works fine.



I want to know why the NavigationBar appears on different location when loading on only iPhone 5c.





Below is my tried code.



 if colour == "red" 
colorView.backgroundColor = Common.redColor
else
colorView.backgroundColor = Common.greenColor

subtitleLabel.text = NSLocalizedString("Profile", comment: "")
navigationController?.navigationBar.barTintColor = Common.backgroundColor
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.isHidden = false
self.automaticallyAdjustsScrollViewInsets = false
navigationItem.leftBarButtonItems = [backButton, UIBarButtonItem(customView: navigationBarView)]






ios swift uiview uinavigationbar custom-view






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 5 at 8:57







Vikas

















asked Mar 22 at 3:46









VikasVikas

1411211




1411211












  • based on your question your device UI updation is delay

    – Anbu.Karthik
    Mar 22 at 3:51











  • What I have to do for this?

    – Vikas
    Mar 22 at 4:04











  • try with main thread

    – Anbu.Karthik
    Mar 22 at 4:06











  • same output with using main thread

    – Vikas
    Mar 22 at 4:15











  • Is OS version of iPhone 5C and other iPhones are same?

    – shuvo
    Mar 22 at 5:32

















  • based on your question your device UI updation is delay

    – Anbu.Karthik
    Mar 22 at 3:51











  • What I have to do for this?

    – Vikas
    Mar 22 at 4:04











  • try with main thread

    – Anbu.Karthik
    Mar 22 at 4:06











  • same output with using main thread

    – Vikas
    Mar 22 at 4:15











  • Is OS version of iPhone 5C and other iPhones are same?

    – shuvo
    Mar 22 at 5:32
















based on your question your device UI updation is delay

– Anbu.Karthik
Mar 22 at 3:51





based on your question your device UI updation is delay

– Anbu.Karthik
Mar 22 at 3:51













What I have to do for this?

– Vikas
Mar 22 at 4:04





What I have to do for this?

– Vikas
Mar 22 at 4:04













try with main thread

– Anbu.Karthik
Mar 22 at 4:06





try with main thread

– Anbu.Karthik
Mar 22 at 4:06













same output with using main thread

– Vikas
Mar 22 at 4:15





same output with using main thread

– Vikas
Mar 22 at 4:15













Is OS version of iPhone 5C and other iPhones are same?

– shuvo
Mar 22 at 5:32





Is OS version of iPhone 5C and other iPhones are same?

– shuvo
Mar 22 at 5:32












0






active

oldest

votes












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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292602%2fwhy-uiview-appears-different-location-when-load-it-in-navigation-bar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292602%2fwhy-uiview-appears-different-location-when-load-it-in-navigation-bar%23new-answer', 'question_page');

);

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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript