Top Layout Guide deprecated since iOS 11 - unable to find view [closed] - swift

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 am getting the following errors:
But i am unable to find the view which occurs that warnings. When ill delete all views in the Storyboard, and perform a "Clean" - the warnings are still present.
Any ideas how to find that view?

Any ideas how to find that view?
It's not a "view"; it's the storyboard itself. Edit the storyboard and check Use Safe Area Layout Guides:
Also you might need to quit Xcode and clean out the DerivedData folder so as to get a completely clean build.

let guide = view.safeAreaLayoutGuide
//put the code like this
view.topAnchor.constraint(equalTo: guide.topAnchor).isActive = true

Related

Anyone find that UIDatePicker is not showing under iOS 14? [closed]

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 1 year ago.
Improve this question
I am trying to display date picker on button click. In iOS 13 that is working fine but when run on iOS 14 it is not showing.
I had the same issue. Go on your Storyboard and click on your calendar after go to Preferred Style attribute and change from Automatic (default value set by iOS 14) to Wheels. Now your calendar will show up again.

Xcode 10.1 textField secureTextEntry [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
StoryBoard textField checked secureTextEntry, other textField all textFields are asking faceRecognition in iphone X, other lower version of iphones are working fine. Is that iphone x, bug or xcode bug ?
it's not a bug. you are going somewhere wrong.
in your viewDidLoad write this code:
MyTextField.isSecureTextEntry = true
or you can use attributes inspector -> Text Input Traits -> Secure Text Entry
it working fine on iPhone x.
Sorry guys i found solution. The problem is not xCode. iPhone x or greater iPhone
included feature of face recognition users have password auto fill settings. if enabled that settings that page textfield type password, secure textFiled entry and webView input type="password" that all page keyboard not showing language globe button. I think it was problem if username field is required Cyrillic.

Receiving Thread 1: Signal SIGABRT error in App Delegate.swift, I am a brand new developer [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have looked everywhere and was not able to get an Answer that worked out. I am doing the Apple Tutorial Here. After I reached a checkpoint where it said run the App to make sure everything works I ran into this issue. Any help will be greatly appreciated. I am new developer so every advise I get from you guys will help me out in the future. If more information is necessary let me know and I will gladly provide it!
First, add view controller class to your view controller on storyboard
Next drag button and text field
Then, connect to your code. Text field is connected as IBOutLet and button is connected as action
Then, add your code like this
#IBOutlet weak var text: UITextField!
#IBAction func click(_ sender: Any) {
text.text = "show up"
}
Finally, test your result

Resources For Implementing Custom UI Designs Into Xcode [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Being somewhat of a beginner to coding, I'm having trouble understanding how to code different custom UI designs into my application. I know that if I take a UI button into my storyboard, I can replace it with a custom image I added into my project from the identity inspector. Anything more than this? I'm clueless.
For example, if I had a custom login screen that had special designed text fields for the username and password, how would I hook up the code to that? Would I just add the screen into the storyboard like normal? Or if I had a custom designed collection view screen, how would I implement this in my project via Storyboard, as well as with code? Hope this makes sense. I'd love to get some screens designed, but want to make sure I know how to hook up everything correctly before doing so and requesting certain things.
I tried looking up different resources on the web for this, but cannot seem to find anything. Any help or guidance on the path to understanding how this works, is greatly appreciated!
Thank you!
Hey Deborah
No one is perfect. But if you want, You can achieve, whatever you want----
Now come to the point-
If you want to create a label by code,
Try this-
var label: UILabel = UILabel()
label.frame = CGRectMake(50, 50, 200, 21)
label.backgroundColor = UIColor.blackColor()
label.textColor = UIColor.whiteColor()
label.textAlignment = NSTextAlignment.Center
label.text = "test label"
self.view.addSubview(label)
For whole things-
Read it
Click here

Swift error: value of type "UIButton" has no member "text" [closed]

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
Here is an error I'm getting on swift when I am just trying to put a simple command.
There is no text property on a UIButton. You have to use:
let label = UIButton()
label.setTitle(title: String?, forState:UIControlState)
If you check the UIButton documentation via option clicking the class, you can see the available functions that you can use.
UIButton doesn't have a text property. Instead, run setTitle:forState: on it, like this:
button.setTitle("My Title", forState: UIControlState.Normal)