UIViewController placement on screen - swift

I have created a simple app for my school classes and everything works great apart from the app loading in the middle of the screen.
centre screen
I would like it to appear here!
bottom of screen
Can anyone point me in the right direction please?

Click on your Window Controller Scene and then on Window
you will se in the Size Inspector a windows which is changeable and then you can move your Window as you wish. Important is to fix your position like in the image :

Related

Unity, at higher resolution (2560 x 1440) tester cannot click the navigation elements on the screen even though they are in position

Here is my issue, the way my game works is that you click on the edges of the screen to navigate. This is done through an Overlay Canvas using OnPointerClick. I colored the navigation areas, and scale the canvas according to screen size and the navigation areas appear on their screen as they should. Yet they CANNOT click any of the elements for some reason. They have another monitor that works without issue. They've noted that their larger monitor is AMD. I've also confirmed that the ability to navigate in game has not been hindered. I have never had this issue (or any other testers) on 1920x1080 monitors.
I have completely exhausted what the issue can be, they cannot even navigate on a bare bones tutorial. Any ideas would be GREATLY appreciated.
Here is an image of their screen and the respective clickable navigation areas.
[img]https://i.imgur.com/NVQkA8g.png[/img]
Unity 2019.2.14f1
Put a Image component without sprite, because without that, you will not detect any click. You can set the alpha to 0 after you see that working.
Also check the anchors of the navigation areas.

Camera is not centered to Game object when attached

This might be a really noobie question, but I attached the camera as a child of the player and the transform is set to (0,0). When I run in the editor the camera is off centered. If I build the game it is the way I wanted. Is there a reason for this happening?
Edit: I just face palm myself. Please check your scales and bar
Credit to: #Ruzihm for fixing my dum mistake
Looking at the scroll bars at the bottom and right of the game view panel, it seems like 1. the view is zoomed in so not everything is visible and 2. the horizontal scroll bar isn't centered.
Recommended fix:
Slide the scale selector all the way to the left
OR
Move the horizontal scrollbar to be centered.

Swift animation/transition like UBER app

Anyone know how the UBER app does the following animation/transition
1) In the main UBER app there is a menu icon with 3 bars in upper left hand corner, when you pan or drag the message view from the bottom (slowly), the menu icon slowly morphs or turns into an up arrow icon and the background slowly turns in to BLACK. Is this done programmatically or is this done for you through the animation library?
This is a custom animation that they do when the user grabs the cards at the bottom of the screen.
They probably draw the menu icon themselves and then using the animation library they morph the lines and rotate everything to look like an up arrow.
Raywenderlich has some good tutorials on animations and their animation book is really good.
https://www.raywenderlich.com/173544/ios-animation-tutorial-getting-started-3

Unity Scene rotation arrows went missing suddenly

How to enable the one that allows me to rotate the scene during development in unity (Scene Gizmo), which is the one located at the top right of the scene. That one suddenly disappears when I click onto it to change the position of the view but it have been working fine all along until now. Could someone please tell me fix this?
thank you
Press "W" to make the arrows come back: http://docs.unity3d.com/Manual/PositioningGameObjects.html
Oh i had found a way, I press "Add Tab" followed by "Scene:, the Arrows appears again YAY
W = arrows (for position transform) E = sphere (for rotation transform) R = blocks (for scaling transform)
Got editor bug with the arrows (move/rotation) disappear. (not the first time, 8 years experience with unity)
Some of these steps should help:
Press W/E (also F few times to focus object root)
Click Add Tab -> Scene (on Game tab header)
Switch to 2D view and back
If you using ProBuilder, be sure to be in object mode, otherwise controls be hidden
Try change editor layout in Window->Layouts
The final. You need to call the code from editor script: UnityEditor.Tools.hidden = false;
Right click on Scene tab. Hover over Overlays and check Orientation.

make a background work on all iphones ios

I've just begun playing around with XCode and currently reading on Objective-C!
I have made a dark background and a book-ish "background" on top of it. Example here.
But how do I set it in a constant position on every iOS device and every iPhone screen-sizes?
From the looks of your image I assume that you want it to be fixed to the bottom.
To do that place your image view in the bottom of its superview and change the autosizing to be fixed to the bottom like in this image below.
The little red box in the view labeled "example" shows you how the image view will behave when the superview is resized.
If you want your image view to have a constant position anywhere else, just position it where you want it and set the appropriate autosizing for it (once again, look at the red box to see how it will behave when resized).
If the right pane is not visible press the right pane button in the tool bar (image below) or use the keyboard shortcut ⌘+⎇+0 to display the right pane or ⌘+⎇+5 to go directly to the size inspector.