Unable to access object of other class

前端 未结 3 1286
悲哀的现实
悲哀的现实 2020-12-12 06:41

I am accessing object of one class in the another class. But instance variable is Showing null.

This is my code.

fvcObj = [[FirstViewController alloc         


        
3条回答
  •  渐次进展
    2020-12-12 07:23

    fvcObj
    

    is a new instance of FirstViewController, so my guess is that the user property has yet to be defined.

提交回复
热议问题