objective-c - block变量怎么变为全局变量
巴扎黑
巴扎黑 2017-05-02 09:28:36
0
0
379

外部有个全局变量self.array

dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);

dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
NSString *string=@"变量";

}
NSlog(@"%@",self.array); //此处self.array为空
请问下要怎么给self.array赋值呢?

巴扎黑
巴扎黑

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!