Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 10 months ago.
Improve this question
I am working on some one else's project and while working I have found an issue. Issue is that app is crashing on below iOS 13.0 for using UITabBarAppearance but when I search for UITabBarAppearance in project it does not show any code containing UITabBarAppearance which means that we have not used any thing regarding tab bar appearance although there is a class for UITabbarController and crash accours while initializing this controller
I am posting screen shots of crash detail, where crash is occurring and that class below, I hope that it will be enough to debug the problem
Crash Details
Crash Occurence
UITabbarController Class
TabBar in storyboard
TabBar Attribute Inspector
You were right lazarevzubov, the answer was hidden in the attribute inspector. I just had to uncheck both standard and scroll edge in the Appearance of the attribute inspector and it started working fine.
if someone get the same problem for navigation bar the same solution will work for navigation bar too.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I wrote a program and after re-running it on the simulator, it now shows the home screen in black.
You have tried to adapt your project not to use scene delegates, but you did it wrong. Here are the things you need to do:
Make sure the Info.plist has no Application Scene Manifest entry.
Make sure the AppDelegate has no methods that mention scenes.
Make sure the AppDelegate has a window property.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I'm facing a problem when i try to run my app it show for less that a second then switch to a white screen written on it "hello world"
this is a new project i just change the background
iOS apps use a Launch Screen whilst loading the app, then they will load the default view controller/storyboard.
In your case here, your launch screen has a purple background and is only shown for a short time until the app initializes and shows it's first screen.
The "Hello world" page is your initial view controller of your app. You either need to modify this UIViewController or change the starting view controller to another one.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am using Xcode 7 and when I am using control drag to make an action with my UITextView to the ViewController.swift file, only the blue line shows up, but no line underneath the ViewController.swift file in which I can choose for an Outlet or Action.
These type of issues come into play when you try to connect the ViewController to a class that has a different class mentioned in the Identity Inspector of the storyboard. Make sure your view controller has the same class name mentioned in the storyboard to which you are trying to connect.
As shown in the image, make sure the class name is correct to which you are trying to connect.
Thank You!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Repo for the same: https://github.com/tush4r/Phone
I have a little test application with no special features except some view elements, including field, button and so on. It is a separate storyboard module and gets called when the app is loaded.
Everything seems good here, till I push the app in the background by pressing the home button. Below are the screenshots for the same: One when the app is running, one after it went in the background and came back to the foreground.
I have no idea why is this happening? A couple of things implemented in the view controller are: Keyboard-hide on tap, UIButton, UITextField, and couple of alerts when the number entered is in the incorrect format.
Any help would be greatly appreciated.
Thank You!
Xcode 7.3
Swift 2.2
iPhone 6s iOS 9.3
Try definesPresentationContext to set true, works for me with similar problem.
In viewDidLoad(), add definesPresentationContext = true
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am learning to program in XCode 7 and Swift 2. I built my app in Main.storyboard, but when I run it in the simulator it looks completely different.
Here are the photos so you can see what I am talking about.
Main.storyboard: http://shrani.si/f/3y/12M/34bm1y0G/1.jpg
Simulator: http://shrani.si/f/1t/ZZ/2AklkVvt/2.jpg
What do I need to do to make it appear the same as in the Main.storyboard?
Thank you for any help,
Aleks
You need to set Constraints.
The easiest way to do it is clicking the triangle and then "Add Missing Constraints" or "Reset to Suggested Constraints" (All Views in XYZ)
It takes a bunch of time to really understand how constraints and auto layout is working. And Xcode helped me a lot with the suggested constraints...
Here is a good tutorial for the start:
http://www.raywenderlich.com/115440/auto-layout-tutorial-in-ios-9-part-1-getting-started-2