Outlets are showing nil

634 views Asked by At

I outleted some views and buttons. and make synthesised to it on .m file. outlet properties are (strong,nonatomic) though when I try to access it on viewwillappear it is showing (nil). Can anyone help me that how could I access it? thanks in advance.

1

There are 1 answers

3
Mike Gledhill On BEST ANSWER

Go into your Storyboard file, right-click on the offending control, and make sure that you have a variable name shown under "Referencing Outlets".

If it's not... the control isn't bound to a variable, and that'd explain your nil.

enter image description here

You can also go into your .h file, and check that your IBOutlets all have filled in circles to the left of them. This also tells you that they are bound to a control.