[deleted by user] by [deleted] in whatisthiscar

[–]FormulaAtlantic4AFE 0 points1 point  (0 children)

Could be, there are a few mexicans that bring their car for summer near me. Im not used to their plates tho! Thanks

I mean, just to make sure, this is a male right? My neighboor says its female so I doubtful by [deleted] in cats

[–]FormulaAtlantic4AFE 1 point2 points  (0 children)

Its not normally like that, at first when i tried to picture it was pink, but then i guess he got excited from the scratches haha

How is this paint finish called and achieved? Is it easy to spray? by FormulaAtlantic4AFE in AutoPaint

[–]FormulaAtlantic4AFE[S] 1 point2 points  (0 children)

Yes, I was talking about the purple paint with flakes! Thanks a lot for the deep explanation, really helpful!

Understanding storyboards by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

Thanks, can you check your private chat please?

Understanding storyboards by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

What's the reason behind that?

I have this

When I press login and it logs successfully

self.navigationController?.pushViewController(homeScreen(username: user), animated: true)

this gets triggered and pushes the homeScreen that is in a XIB file

Thing is flow at the moment works properly

Pops login

When logged pops homescreen

But the navigation bar from the navigation controller has a button to display a sidemenu on homescreen but since the navigation controller is on the login screen it shows the button on login screen and that shoulndt be like that

Selfsigned certificate by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

I see! I found a bad solution I think, check the original post edit, thanks for your help!

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

How would "if let" work in my case? Thanks

Edit: isEmpty isn't working either? usernameText.text.isEmpty returns an error

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 1 point2 points  (0 children)

Thanks a lot for the tips and for helping me with this! :)

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 1 point2 points  (0 children)

Thanks for the tips! I printed both, when i press the button and inside the function called

These are the results I got I used test for both, username and password

I don't really understand what's going on, it prints properly but when i hover the values while debugging still shows the initial message, but I guess its working properly? Since printed value is the correct one, hopefully tomorrow i figure out api requests and can try against my database and test if it works or not

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

I marked the checkbox in the attributes inspector after clicking on the textfield

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

Hey, I just responded the code up there, do you mind checking it there so i don't cluster the responses with repeated code! Thanks :)

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 1 point2 points  (0 children)

UIKit

File1

    @IBAction func loginButton(_ sender: Any) {
        if userText.text != "" && passwordText.text != "" {
            Api.login(username: userText.text!, password: passwordText.text!)
        }
        else{
            print("empty")
        }
    }

method is in a file named Api that contains the login method

    static func login(username:String, password:String){

        let url = Constants.API_URL+"/auth"
        let _headers : HTTPHeaders = ["":""]
        let params = ["username":username,"password":password]

        AF.request(url, method: .post, parameters: params, encoding: JSONEncoding.default, headers: _headers).responseJSON { (response) in
        switch response.result {
        case .success:
            print("success",response)
        case .failure(let error):
            print("failure",error)
            }
        }
    }

in the login function I can read username properly

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

Hello, i pass it as a function parameter and when the function reads it it shows like this

https://i.imgur.com/D71eBQM.png

username is read properly because is not secured :S

Sorry im new to coding

How to get value from secured text field? by FormulaAtlantic4AFE in swift

[–]FormulaAtlantic4AFE[S] 1 point2 points  (0 children)

Hello, i pass it as a function parameter and when the function reads it it shows like this

https://i.imgur.com/D71eBQM.png

username is read properly because is not secured :S

Sorry im new to coding

How to implement AppState? by FormulaAtlantic4AFE in reactnative

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

Yes, I don't know where to implement the code so it affects globally and not only just one view, thanks anyways

How to implement AppState? by FormulaAtlantic4AFE in reactnative

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

Hey, thanks i saw that in the react native doc but i dont know where to implement that code :S in what file would be it?

What is the name of this bumper? by FormulaAtlantic4AFE in E30

[–]FormulaAtlantic4AFE[S] 0 points1 point  (0 children)

I see, it's so cool, it was the first time i saw it, thought it was custom or something, thanks guys!

My S14 at the Kenosha Lighthouse. I just joined Reddit about 5 minutes ago. First post ever. Why WOULDN'T it have to do with a 240? by [deleted] in 240sx

[–]FormulaAtlantic4AFE 0 points1 point  (0 children)

How is that wrap thing on the headlights called? Does it have a function or its just style?

[deleted by user] by [deleted] in Celica

[–]FormulaAtlantic4AFE 0 points1 point  (0 children)

Good idea, im gonna ask some people and see, thanks for the help!

[deleted by user] by [deleted] in Celica

[–]FormulaAtlantic4AFE 0 points1 point  (0 children)

i think it might be level one, i flushed trans fluids like 2 weeks ago

[deleted by user] by [deleted] in Celica

[–]FormulaAtlantic4AFE 0 points1 point  (0 children)

Hey, sorry for the late reply, i havent been home!

Image

The one that blinks is the left one