【发布时间】:2013-08-07 05:45:50
【问题描述】:
我试图将文本字段中的文本放入 UIAlertView,但未显示。它只是显示空白。
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Kik" message:self.kik.text delegate:self cancelButtonTitle:@"Got it!" otherButtonTitles: nil];
[alert show];
【问题讨论】:
-
你有没有试过
NSLog(@"%@",self.kik.text);看看你得到了什么?如果它是 nil 或空白,那么这就是你的问题。 -
感谢您解决了所有问题!原来我是在拍空白。 @Jsdodgers