How do you pass objects between View Controllers in Objective-C?

前端 未结 4 1970
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 15:52

I\'ve been trudging through some code for two days trying to figure out why I couldn\'t fetch a global NSMutableArray variable I declared in the .h and implemented in .m and

4条回答
  •  死守一世寂寞
    2020-12-29 16:30

    Just make a global variable. Global means outside any scope.

    NSMutableDictionary *gDictionary;
    
    @implementation ...
    @end
    

提交回复
热议问题