I am getting this error on my application when i hit hello button:
Asked
Active
Viewed 62 times
-2

LinusGeffarth
- 27,197
- 29
- 120
- 174

Shafran Naizer
- 89
- 9
-
Please do not post image of code. Instead post the actual code. If you want to post images of storyboard, those are fine. – Rakesha Shastri Aug 18 '18 at 05:50
3 Answers
1
This crash is because of you forgot to set IBoutlet with Output UILabel with UI interface
So you need to set IBOutlet
select Output Label from storyboard and then right longpress with drag from
to
after end gesture you get output uilabel then connect with

Kiran Sarvaiya
- 1,318
- 1
- 13
- 37
0
kindly check outlets of ur textField (input textField)it is not connected to your storybord so connect it and then try it

Mahesh Dangar
- 806
- 5
- 11
-
-
@ShafranNaizer kindly check outlets of ur textFields input textField is not connected to your storybord so connect it – Mahesh Dangar Aug 18 '18 at 05:51
-
@ShafranNaizer https://supereasyapps.com/blog/2016/3/1/60-how-to-create-outlets-and-actions-in-xcode-using-swift . refer this video to set outlet – Mahesh Dangar Aug 18 '18 at 05:53
-
-
@ShafranNaizer ur welcome and it would be cool if you upvote my answer :) – Mahesh Dangar Aug 18 '18 at 05:55
-
-
@MaheshDangar your answer is wrong. Atleast change your answer if you want it upvoted. – Rakesha Shastri Aug 18 '18 at 05:57
-
@ShafranNaizer it's okay if u dont want to upvote :) i m asking you for that because i helped you and your question is very comman so sorry i can't upvote it – Mahesh Dangar Aug 18 '18 at 05:57
-
@RakeshaShastri my answer is not wrong bro i have said both the cases and when i find that he had problem of outlet then i explained him – Mahesh Dangar Aug 18 '18 at 05:58
-
-
@MaheshDangar yes, then change your answer to that. You current answer is **wrong**. – Rakesha Shastri Aug 18 '18 at 05:59
-
@RakeshaShastri auther of question is saying that it's working fine :) but still i will respect ur optinion too and will update my answer too :) – Mahesh Dangar Aug 18 '18 at 06:00
-
@MaheshDangar author says your **comment** has helped him, not your **answer**, because what you have posted as an answer is **wrong** . So change your answer to what you have put as comment. Because other people who are looking for the answer won't bother reading the comments and think that you answer is **correct** and a `UITextField` text property will never return `nil`. – Rakesha Shastri Aug 18 '18 at 06:02
-
@RakeshaShastri yes totally agree that why I said that I will respect ur opinion and thank you very much :) – Mahesh Dangar Aug 18 '18 at 06:03
-