开发者

UIAlertView Messages

Trying to include a instance variable in a message that a UIAlertView Shows.

lostAle开发者_如何转开发rt = [[UIAlertView alloc] initWithTitle:@"Sorry" message:(@"You Were Wrong, the correct structure was %@", structureName)  delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];

however, when the Alert is shown, no message is shown.

Any ideas and help would be appreciated :)

Sam


did you try it with:

[NSString stringWithFormat:@"You Were Wrong, the correct structure was %@", structureName]

instead of

(@"You Were Wrong, the correct structure was %@", structureName)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜