Browse files

updated show() method to occur on main thread.

  • Loading branch information...
1 parent 2b311aa commit c5ffbc19247f3981d7dd56a1f34f8748988413c1 @rcarlsen committed Aug 8, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 ofxiPhoneAlertView.mm
View
3 ofxiPhoneAlertView.mm
@@ -54,7 +54,8 @@
}
void ofxiPhoneAlertView::show(){
- [alertViewDelegate show];
+ // UI events need to occur on the main thread.
+ [alertViewDelegate performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];
}
int ofxiPhoneAlertView::getSelectedButton(){

0 comments on commit c5ffbc1

Please sign in to comment.