I am Implementing the basic app in Xcode which displays "Hello World" in the center of the scene. When i run it in iOS simulator it is been displayed towards the right end of the simulated iPhone screen. When i try to place the "Hello world" string towards right in my Xcode project and run, it disappears when viewed in the simulated iPhone screen. How can i adjust this issue. Thanks
You just keep the label drag untill you got that image in your builder.
Related
Attempting to follow some noob tutorials and I have exhausted google search but I cannot seem to figure out why my Nav Bar is not showing when I embed my VC in a Navigation Controller. I am using Xcode 14.2 with iPhone 14 pro max as my phone in storyboard. Would appreciate any help.
Tried clicking off "translucent" and it turns the whole top of the Navigation bar completely black
what does it mean 'not showing'? In Xcode or in Simulator when you run the app? What would you like to see?
here is my screenshot with app running
Xcode with Storyboard
I used NativeScript Sidekick to build my splash screen. I have the white bar at the bottom of the splash screen on iPhone X and above. I tried to follow this guide: https://blog.angelengineering.com/nativescript-splashscreen-iphonex/ to adjust the constraints however every time I run tns run ios to relaunch the app in the ios simulator, I see the changes in xCode revert and the white bar shows again.
Anything you find in platforms folder is auto generated and could be overwritten on every build.
You may use the auto generated one as a template, modify the launch screen from platforms folder then copy it back to App_Resources/iOS.
I'm opening a topic here to find some help regarding the Splash screen on iOS. Apparently, all the process seems to be quite simple, but unfortunately, I've encountered a problem just on a specific case : the default splash screen is showed on the iPads with low resolutions (iPad , iPad 2, iPad Air , ...), the custom one is not set.
Specificity : The application is developed with React Native (Framework) only for iPad on a Landscape mode.
Here below you will find the steps that I followed to achieve the Splash screen :
2 pictures prepared for the Splash screen : Default-Landscape.png (1024*768px) & Default-Landscape#2x.png (2048*1536px).
Project opened on Xcode : MyProject.xcodeproj
Check out the folder "Images.xcassets" in the project.
Left click (2nd column from the left. In the full display interface) > App Icon & Launch Image > New iOS Launch Image.
Two new things appeared: one drop zone and a checklist with the devices that we wanted. Then I've chosen what interested me.
Drag and drop the images in the specific drop zone related to the good format.
After the image uploaded I've click on project "MyProject" (1st column) > click on target "MyProject" (2nd column) > click on "Use catalog assets" (button on the 3rd column) > select "Migrate" > then in the drop down menu I've chosen the settings that I've prepared before "LaunchImage".
Finally I removed the folder "Base.lproj" where the default splash screen (LaunchScreen.xid) was.
Result: After compiling, I've seen that the Splash screen was working for the high resolution devices (iPad Air 2 & iPad Pro), but unfortunatly, on low resolution (iPad 2, iPad Air, iPad Retina), I still have the default screen "NameOfProject" as headline and "Powered by React native" on the bottom of the page.
I really hope that you can help me on this one because I really don't know what's going wrong there. I've tried different import methods, differents sizes and names for the images. But still nothing work.
You may have to delete the app from the Home screen, and then reinstall it. iOS seems to cache the previous launch image for some reason.
Also make sure that your image sizes are correct if you haven't already.
Thanks a lot rclai89!!
Just to add some details to complete this topic. This video explains what you've advised me and solved my problem : https://www.youtube.com/watch?v=yiSehGHZZ18.
App removed from the Home screen : Once the emulator is running, on the top navigation choose Simulator > then Reset Content and settings.
Cache cleared : CMD + SHIFT + K
Derived Data cleared : On Xcode go to the Window item (top navigation) > select Projects > next to the "Derived Data" you have the path where the file is contained, just need to click on Delete button and everything is done.
Close & Re-Open Xcode. The next compilation for all the different devices (in my case iPad) show up the splash screen that I wanted. Awesome!
I'm new to Xcode and I'm having a problem between interface builder and iphone simulator
As you see below, I set the imageview size for simulator, but some buttons places are changed, button texts disappeared or even buttons disappeared.
http://postimage.org/image/w9ej1c3z1/
I just open a new project and add buttons like the image below, then run the project. Same thing again! I'm doing something wrong?
http://postimage.org/image/6gl55tehd/
xcode version is: 4.5.2
Ios simulator version is 6.0
Please make validate your design by clicking on "Apply retina 4 form Factor" button at the bottom of view controller upon selection...
if you click on that button, It will change to simulator size and you can check the design
It looks like your view is for a 4" screen but you are running in the 3.5" simulator. You will probably just need to play with the autoresize a bit to make it work correctly.
Your interface builder is set for the resolution of an iPhone 5. Your simulator is on the resolution of an iPhone 4S. In the Simulator menu bar select Device -> Hardware - iPhone 5 (Retina) and you will see your additional buttons.
Here is a pretty good tutorial which explains how to support both the iPhone 5 and <= iPhone 4S screen resolutions. Working with iOS 6 Auto Layout Constraints in Interface Builder
I am running xcode 4.3.2 and just started having the following problem.
All projects running in the simulator are positioning the popup keyboard in the center of the IPAD simulator. The IPHONE simulator is fine with the normal keyboard positioned at the bottom of the screen. Even a simple new project with a single text field shows the keyboard in the middle of the screen with equal amounts of white space above and bellow. This occurs in all orientations.
Interestingly, UIPickerViews also exhibit the same behavior.
This is driving me nuts, as it has been fine for many months and now all the objects (text fields etc.) are hidden when the keyboard plops down smack in the middle of the screen.
Please help. Thanks in advance.
Tom
This is a feature of the iPad. You can "drag" the keyboard with the drag handle in the lower-right hand corner of the keyboard. The image from this blog post by Rob Rogers indicates how to use it. My guess is you inadvertently moved your keyboard.