开发者

xcode 4, Thread 1:Program received signal:"EXC_BAD_ACCESS."

开发者 https://www.devze.com 2023-03-07 01:18 出处:网络
When i adde开发者_JAVA百科d the code(textField.text=preTotalNumber;) in the method(onButtonPressed),the failure appeared.

When i adde开发者_JAVA百科d the code(textField.text=preTotalNumber;) in the method(onButtonPressed),the failure appeared. Can anyone please help me?thk


preTotalNumber should be an NSString, and if not you should convert it to NSString. for instance if it's an integer you can use the following:

[NSString stringWithFormat:@"%d", preTotalNumber];
0

精彩评论

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

关注公众号