Detail view on storyboard too zoomed - creates inconsistent objects in the simulator

I have a possibly newbie question but haven't found a solution to this particular problem after endless searching on stackoverflow and other forums.

My detail view in storyboard seems to be zoomed in too much. At this point, scaling and simple scaling and scaling are simply scaled in the storyboard, but not in the detail view.

Indicators of this are that the alignment arrow to the left of my button is not positioned at the half-width of the detail viewport, although when I align my button with this marker, I see a cross-hair indicating that my button is "centered".

Detail View - Further Exit

When simulating, it is obvious that using these crosshairs results in runtime alignment far up and up from centering. Where my button is, it appears to be in the center of the simulator screen, but I would like my guidelines to be able to center on the button using the recommended guidelines.

Simulator View

A) How do I "zoom out" in "Detail view" so that I can see the whole screen in detail view?

B) How can I center my object if the guidelines are inherently inactive?

Thank you so much for the advice and input.

0


source to share


2 answers


Are you using constraints to keep different controls, etc ??

If you don't try:



  • Select all items in the detail view user interface. Click on an empty space somewhere in the view and click CMD + A

    .
  • Click on resolve auto layout issues

    in the lower right corner of the Nib editor. (this is the largest icon)enter image description here
  • Click Clear Constraints

  • Press again resolve auto layout issues

    , thenReset to Suggested Constraints

Change your limits according to the user interface you are working with ie iPhone, iPad and whatever orientation it is, etc.

0


source


I forgot to mention how I fixed the "too zoomed out" problem.



In the storyboard controller on the left navigation pane in the file inspector, I just unchecked the Use Size Classes checkbox under the Interface Document section. My view controller changed to the regular iPhone shape, and everything finally fell into place.

0


source







All Articles