I'm having some difficulties understanding how the @interface SkiSubViewController ()
@property (weak, nonatomic) IBOutlet UILabel *label;
@end
@implementation SkiSubViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.label.text = [NSString stringWithFormat:@"Number %li", (long)self.indexNumber];
}
@end
works. Does the code inside this method is being performed on a separate thread? What if I want to do some networking stuff inside an AsyncTask to fetch some data related to Beacons discovered, is it better to open a new thread to each discovered beacon or to open a new thread to each list of beacons discovered by ranging, known that the same beacons might be discovered more than once in a short period of time?
答案 0 :(得分:0)
在实例化BeaconManager
的线程的消息队列上调用所有Estimote Android SDK回调。除非你真的做了什么,真的很奇怪,这意味着主/ UI线程。