I am in the middle of attempting to create an iOS app. It has two screens at the moment, between which I am attempting to add a segue.However, when I add a segue (no matter what type of segue I add) the second screen's content shifts down by 54 pixels. This includes the background (to which I tried adding constraints, it still shifts down), the Safe Area, and the UI content of the second screen. All of it shifts downward by 54 pixels immediately upon adding a segue. When I check the attributes panel to try to identify the problem, it says Screen One's Content Size is 414 x 896 ...these numbers are there automatically and were not altered manually and Content Size is unchecked.However, for Screen Two's Content Size - after adding the segue - it says 414 x 842. These numbers are also there automatically and were not altered manually and Content Size is unchecked. (Before adding the segue, the Content Size for both screens was identical and were placed there automatically, Content Size unchecked).This means this isn't just a matter of the content shifting downward upon adding a segue - but instead an issue of the Content Size becoming 56 pixels smaller upon adding a segue (this includes the safe area).I have little to no code in my project yet. Just one IBAction. I have warnings regarding constraints showing up as well; I've included links to screenshots of both:Screenshot of Warnings: https://uniim1.shutterfly.com/ng/services/mediarender/THISLIFE/023076556253/media/64875383979/medium/1575367343/enhanceScreenshot of Code: https://uniim1.shutterfly.com/ng/services/mediarender/THISLIFE/023076556253/media/64875383982/large/1575367343/enhanceDoes anyone know why my second screen's Safe Area (and all its content) is behaving this way every time I add a segue? Why is this happening and what I can do to prevent this? Please help. Thank you.
Post
Replies
Boosts
Views
Activity
I'm in the middle of creating an app. The app launches with text displayed by default in the text field, e.g.: "Enter video name here:".I would like for that text to be deleted immediately when the user taps within that text field to enter his/her own desired text. Is there a way to do this in Xcode. I see that there is a "clear" button that can be chosen. But I would like for the default text to be deleted immediately when the user clicks within the text field for the first time.If someone could plese let me know how to do that, I would greatly appreciate it. Please help. Thank you.
When I first began trying to build my app, I set the device to iPhone 11. I ran the app several times in the simulator and it worked just fine. But after two days, I began to get an error (listed below) and finally my textfield wouldn't allow me to type in text at all.At first I set the keyboard for the textfield to Decimal Pad and it worked fine the first four or fives times that I ran it; but soon, I began to get the below error and finally I couldn't enter any text into the field anymore (even using my own keyboard):Can't find keyplane that supports type 8 for keyboard iPhone-PortraitChoco-DecimalPad; using 25727_PortraitChoco_iPhone-Simple-Pad_DefaultI changed the keyboard to Number Pad and now I'm getting the below error:Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 25686_PortraitChoco_iPhone-Simple-Pad_DefaultCould someone please let me know why this is happening? I'm in Xcode 11.2.1 if that's of any help. Please help. Thank you.
I found an instructional bookt that is for iOS 11 and Swift 4. The book has no updated version. Is it possible for me to use this book today even though we're now on iOS 13 and Swift 5?
I have two View Controllers with buttons. The first View Controller has no stack views. The second View Controller has stack views.
When I change the size or orientation (to landscape) of my SECOND View Controller, everything works fine as i used Aspect Fit for each button.
However, when I change the size or orientation (to landscape) of my FIRST View Controller, the buttons do not adjust their size or position on the screen to match the landscape mode. I've tried Aspect Fit with each button in this FIRST View Controller, but it does not do anything. The problem remains the same. I also tried imageView.contentMode Number 1 in the User Defined Runtime Attributes. Yet the problem remains the same.
Is there a way to fix this problem with the FIRST View Controller?
I am including images to show my the settings, and how these images appear in both portrait mode and landscape mode. I was advised by the school mentor to use a Scroll View which seems wrong. A user should never have to scroll down to click a single button. (The First View Controller has only two buttons on the screen and a text label that says "Tap to Record", that's it.)
Is there a way to fix this problem with the FIRST View Controller?
Portrait Mode Screenshot:
tiny url [dot] com [forward slash] y493hztx
Landscape Mode Screenshot (Which shows the problem in the first View Controller's buttons not resizing to fit the smaller screensize):
tiny url [dot] com [forward slash] y4xc9g34