NSLog on a NSString saved in a UITextfield?

For Nsstring variable you should use below code.

For Nsstring variable you should use below code... NSString *loginsaved = login. Text; NSString *passsaved = pass. Text; NSLog(@"%@", loginsaved ); Here in objective for Integer %d,String %@,Float %f is used.

Keep smiling....

I had forget to link my outlet in the interface builder ^^ – clement Apr 27 at 13:46.

Sounds like login could be nil, so login. Text would return nil too.

Haha fine thanx, I just forget that I forget to set it... hum... – clement Apr 26 at 15:28.

Try this instead: NSLog(@"%@", loginsaved ).

Possible next question: When I execute it, the console shows nothing instead of the login that I've typed... – Matthias Bauch Apr 26 at 15:01 @fluchtpunkt it may happen if you forgot to connect the login UITextField in your IB with the IBOutlet UITextField *login from your code. – Cyprian Apr 26 at 15:05.

Yes it does because you use %d in your NSLog use %@ instead: NSLog(@"%@", loginsaved ).

I tried it, and the console print me (null) ... – clement Apr 26 at 15:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions