Hi @all,
i just wanted to add a subview to my main window from another thread.
like so:
Now i have the problem, that it does not work, there's no label visible after the thread terminates.
If i run the main's code in the Application's thread that calls applicationDidFinishLaunching it works properly.
can anyone please help me ?
i just wanted to add a subview to my main window from another thread.
like so:
Code:
AppDelegate.m
...
UpdateThread *t = [[UpdateThread alloc]init];
[t setWindow:window];
[t start];
...
Code:
UpdateThread#main
...
UILabel *l = [[UILabel alloc]initWithFrame:...];
//label's setup
[window addSubview:label];
...
Now i have the problem, that it does not work, there's no label visible after the thread terminates.
If i run the main's code in the Application's thread that calls applicationDidFinishLaunching it works properly.
can anyone please help me ?