Question: I would like to display something like this: `SampleUser poked you.` in a `UIAlertView`'s `message`, but actually i'm getting errors. I know how to do it with a simple string, i don't know how to do it with a string that contains another string. 

```
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Poke" message:@"%@ poked you.", self.senderString delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No", nil];
[alertView show];

```

Answer: 
You should create your composed-`NSString` first and then call it in your `UIAlertView`:

```
NSString *message = [NSString stringWithFormat:@"%@ poked you.", userName];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Poke" message:message, self.senderString delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No", nil];
[alertView show]; 

```
```
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Poke" message:[NSString stringWithFormat:@"%@ poked you.", self.senderString] delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No", nil];
[alertView show];

```