Question: I have a problem regarding the `UIAlertView` on iOS7.
When I launch my application, it crashes with the following message:

```
*** Assertion failure in -[UIKeyboardTaskQueue performTask:], /SourceCache/UIKit_Sim/UIKit-2903.2/Keyboard/UIKeyboardTaskQueue.m:388

```

The error occurs on the following line:

```
- (IBAction)updatePositions:(id)sender{
     _alert = [[UIAlertView alloc] initWithTitle:@"text" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
     [_alert show];     <====== IT CRASHS HERE
     [NSThread detachNewThreadSelector:@selector(updateDataThread) toTarget:self withObject:nil];
}

```

I'm using ARC and the property `_alert` is set defined as: `@property (nonatomic,strong)`

This error seems strange, because on iOS6 the code works perfectly and I don't know what should be different on iOS7.

Does anyone have an idea what could the error?

Thanks in advance.

Answer: 
I just had this problem after forgetting that I was working from a background thread. I don't know if that's the case here, but I'd make sure you're not trying to call updatePositions: from anything other than the main thread.
Change your code like this :

```
_alert = [[UIAlertView alloc] initWithTitle:@"text" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
[_alert show];

```

removing [[ and ]] around @"text"

But, your I don't think your problem came from this UIAlertView.