开发者

UIAlertView Messages

开发者 https://www.devze.com 2022-12-14 16:12 出处:网络
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 structu

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

精彩评论

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